xiebruce / PicUploader

一个还不错的图床工具,支持Mac/Win/Linux服务器、支持压缩后上传、添加图片或文字水印、多文件同时上传、同时上传到多个云、右击任意文件上传、快捷键上传剪贴板截图、Web版上传、支持作为Mweb/Typora发布图片接口、作为PicGo/ShareX/uPic等的自定义图床,支持在服务器上部署作为图床接口,支持上传任意格式文件。
https://www.xiebruce.top/17.html
MIT License
1.19k stars 169 forks source link

按流程操作,最后打不开https://api.picuploader.com/ #46

Open shadowfish07 opened 4 years ago

shadowfish07 commented 4 years ago

显示无法访问此网站,api.picuploader.com 意外终止了连接。 我ping api.picuploader.com 是127.0.0.1的

xiebruce commented 4 years ago

注意nginx配置里的那些路径都正确,比如access_log,error_log, ssl_certificate,ssl_certificate_key,另外可以查看一下nginx日志有什么报错,不知道你是win还是mac?

nanbabyer commented 3 years ago

同类报错。路径都改了

xiebruce commented 3 years ago

@nanbabyer 1、你是在什么系统上用? 2、hosts指定了域名到127.0.0.1吗?ping api.picuploader.com看看

nanbabyer commented 3 years ago

1.macOS catalina 10.15.7 2.ping是对的

nanbabyer commented 3 years ago

又重新操作了一遍,access_log ,error_log 的路径里面没有文件,是空的

nanbabyer commented 3 years ago

网页显示域名picuploader.com正出售

xiebruce commented 3 years ago

@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
nanbabyer commented 3 years ago

不加科学上网是显示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;

nanbabyer commented 3 years ago

上面这两个部分的文件,在对应地方没有找到?哪里错了吗?

nanbabyer commented 3 years ago

image

xiebruce commented 3 years ago

上面这两个部分的文件,在对应地方没有找到?哪里错了吗?

这就要问你是怎么弄配置文件的了,是按我这里配置的吗? image

nanbabyer commented 3 years ago

是的呢,但是我brew里看了一下发现nginx显示error

xiebruce commented 3 years ago

有error那就解决一下