Open shadowfish07 opened 4 years ago
注意nginx配置里的那些路径都正确,比如access_log
,error_log
, ssl_certificate
,ssl_certificate_key
,另外可以查看一下nginx日志有什么报错,不知道你是win还是mac?
同类报错。路径都改了
@nanbabyer
1、你是在什么系统上用?
2、hosts指定了域名到127.0.0.1
吗?ping api.picuploader.com
看看
1.macOS catalina 10.15.7 2.ping是对的
又重新操作了一遍,access_log ,error_log 的路径里面没有文件,是空的
网页显示域名picuploader.com正出售
@nanbabyer 1、你是不是有科学上网工具?有的话把它关了再试试 2、ping正确的话,不应该显示正在出售呀,你把ping的数据贴出来,是不是这样的?
PING api.picuploader.com (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.022 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.081 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.067 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.071 ms
不加科学上网是显示connection refused网站拒绝了请求,加科学上网是显示time out超时,ping的就是您的这样的,hosts是改好的。但我怀疑我是哪里改的不对,配置nginx时user前面的#是要去掉对吗? access_log /usr/local/var/log/nginx/api.picuploader.com.access.log combined; error_log /usr/local/var/log/nginx/api.picuploader.com.error.log error;
上面这两个部分的文件,在对应地方没有找到?哪里错了吗?
是的呢,但是我brew里看了一下发现nginx显示error
有error那就解决一下
显示无法访问此网站,api.picuploader.com 意外终止了连接。 我ping api.picuploader.com 是127.0.0.1的