使用nginx顯示回應時間過長 - Linux

Faithe avatar
By Faithe
at 2017-11-15T13:45

Table of Contents


大家好,在下是個剛開始接觸網路世界的菜鳥
前陣子有試過架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.

--
Tags: Linux

All Comments

Charlotte avatar
By Charlotte
at 2017-11-18T04:29
測試方法不當,嘗試用 curl http://IP/
Callum avatar
By Callum
at 2017-11-18T19:41
設定檔貼一下或貼一下教學文吧
Necoo avatar
By Necoo
at 2017-11-21T08:55
好歹看一下log 做個內部測試一下 像是port有沒有通啦
Elizabeth avatar
By Elizabeth
at 2017-11-24T20:01
逐步排除問題 你貼一個nginx的daemon有跑起來不代表會work
Skylar Davis avatar
By Skylar Davis
at 2017-11-25T00:41
你要不要參考gslin這篇文章的工具試著測測看?
https://blog.gslin.org/archives/2017/11/11/7761/

雙系統開機選單不見了

Emily avatar
By Emily
at 2017-11-15T01:38
小弟是win10灌ubuntu雙系統 但今天用完windows系統切換到ubuntu的時候 發現重新啟動後選單不見了 重新關機再開機也一樣 都會直接進windows系統 想請問版上大大們該怎麼辦 - ...

gfortran error unrecognized command -i8

Yuri avatar
By Yuri
at 2017-11-13T18:29
小弟linux新手 最近在安裝軟體時有以下幾列錯誤訊息 是執行mpif77 mpif90等時發生的 gfortran: error: unrecognized command line option and#39;-i8and#39; gfortran: error: unrecognized comm ...

PS 問題請教

Eden avatar
By Eden
at 2017-11-13T07:20
請問我要如何找出某個 pid 大於某個 給定的pid (用一個 command line) 比如 pid list 1 2 4 6 100 256 andlt;= give 345 andlt;= get 690 788 1024 給定的pid是 256 , 我想要得到345 - ...

EDA server 要裝遠端連線

Vanessa avatar
By Vanessa
at 2017-11-12T20:43
各為PTT企鵝版的版友大家好! 我有一台EDA server,要提供給別人遠端連線畫ic layout ,網路連線頻寬是學網,所以 頻寬還蠻大的,現在我有一個問題,我要使用哪套遠端軟體啊~VNC--andgt;聽說快捷鍵,會和 cadence layout快捷鍵衝突,會嗎?NX free 只提供同時兩個連線? ...

Ternimal開啟軟體的問題?

Audriana avatar
By Audriana
at 2017-11-11T16:25
Ubuntu安裝Android Studio後 如果沒有自行額外改設定 好像必須透過Ternimal下指令,才能開啟Android Studio $ cd (略) Android-Studio/opt/bin/ $ ./studio.sh Android Studio啟動後 發現如果我自己關掉Te ...