[問題] 使用nginx顯示回應時間過長

看板Linux作者 (六月九日)時間8年前 (2017/11/15 13:45), 編輯推噓2(204)
留言6則, 4人參與, 8年前最新討論串1/1
大家好,在下是個剛開始接觸網路世界的菜鳥 前陣子有試過架apache2算是成功了,不過後來莫名其妙就死掉了,儘管費盡心思挽救還是萬劫不復,最後在別人的建議下打算試試看nginx 設定檔都是照網路上的教學文複製貼上,但是沒辦法連線成功,顯示"回應時間過長" 輸入telnet (我的IP) 80之後回傳 Escape character is '^]' 輸入systematic status nginx.service 回傳 ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since 三 2017-11-15 13:41:51 CST; 6s ago Process: 2502 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS) Process: 16157 ExecReload=/usr/sbin/nginx -g daemon on; master_process on; -s reload (code=exited, status=1/FAILURE) Process: 2511 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 2507 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 2514 (nginx) Tasks: 3 Memory: 2.4M CPU: 14ms CGroup: /system.slice/nginx.service ├─2514 nginx: master process /usr/sbin/nginx -g daemon on; master_process on ├─2515 nginx: worker process └─2516 nginx: worker process 11月 15 13:41:51 ubuntu systemd[1]: Stopped A high performance web server and a reverse proxy server. 11月 15 13:41:51 ubuntu systemd[1]: Starting A high performance web server and a reverse proxy server... 11月 15 13:41:51 ubuntu systemd[1]: Started A high performance web server and a reverse proxy server. 身為菜鳥有很多不懂的地方抱歉了 困擾了許久有勞大家解惑 非常謝謝各位 ----- Sent from JPTT on my Asus ASUS_Z017DA. -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 39.10.98.11 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1510724749.A.87F.html

11/15 19:03, 8年前 , 1F
測試方法不當,嘗試用 curl http://IP/
11/15 19:03, 1F

11/15 20:53, 8年前 , 2F
設定檔貼一下或貼一下教學文吧
11/15 20:53, 2F

11/15 22:12, 8年前 , 3F
好歹看一下log 做個內部測試一下 像是port有沒有通啦
11/15 22:12, 3F

11/15 22:13, 8年前 , 4F
逐步排除問題 你貼一個nginx的daemon有跑起來不代表會work
11/15 22:13, 4F

11/15 23:31, 8年前 , 5F
你要不要參考gslin這篇文章的工具試著測測看?
11/15 23:31, 5F

11/15 23:31, 8年前 , 6F
文章代碼(AID): #1Q2zIDX_ (Linux)
文章代碼(AID): #1Q2zIDX_ (Linux)