所以最近我向数字海洋提出了一个问题,问题是这样的。“我按照步骤设置 nginx ubuntu 我的 redis mongodb pm2 Web 应用程序似乎正在运行,但是当我点击我的 IP 地址时根本没有响应。我的应用程序没有收到对 IP 地址 [myipadddress] 的请求. 我检查了我是否也设置了 etc/nginx/sites-available,你能指出我哪里做错了吗?
我也给他们发了我做的测试,我做的测试是这样的。
$ curl -x http://[my ip address]:80 --trace-ascii /tmp/dump.txt
https://dl-ssl.google.com/linux/linux_signing_key.pub -o /tmp/key.pub
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:01:00 --:--:-- 0
curl: (56) Recv failure: Connection reset by peer
mycomputername ~/code/freelance/exmapleproj/exampleproj on EB-717-
notification-backend[!?$]
$ cat /tmp/dump.txt
== Info: Trying [my ip address]...
== Info: TCP_NODELAY set
== Info: Connected to [my ip address] (my ip address) port 80 (#0)
== Info: Establish HTTP proxy tunnel to dl-ssl.google.com:443
=> Send header, 126 bytes (0x7e)
0000: CONNECT dl-ssl.google.com:443 HTTP/1.1
0028: Host: dl-ssl.google.com:443
0045: User-Agent: curl/7.54.0
005e: Proxy-Connection: Keep-Alive
007c:
== Info: Recv failure: Connection reset by peer
== Info: Received HTTP code 0 from proxy after CONNECT
== Info: Closing connection 0