0
我正在用nginx和PM2在Ubuntu 14上運行一個小型節點(通過express)服務器。我跑了pm2
停止,重新啓動我的nginx服務器,但該應用程序仍在運行。還有什麼我需要重新啓動/殺死?我甚至一起殺死了nginx,檢查它確實停止了,然後重新啓動了它,並且該應用程序仍然顯示正在運行。無法殺死nginx上的節點應用
pm2
列表/停止:
┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
└──────────┴────┴──────┴─────┴────────┴─────────┴────────┴────────┴──────────┘
Use `pm2 show <id|name>` to get more details about an app
$ pm2 stop all
[PM2][WARN] No process found
┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ memory │ watching │
└──────────┴────┴──────┴─────┴────────┴─────────┴────────┴────────┴──────────┘
Use `pm2 show <id|name>` to get more details about an app
$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
$ sudo service nginx restart
* Restarting nginx nginx [ OK ]