0
私は、nginxとPM2を使用してUbuntu 14に小さなノード(エクスプレス経由で)サーバを稼働させています。私はpm2
停止を走らせ、私のnginxサーバーを再起動しましたが、アプリはまだ動いています。私は再起動/殺すために何か他に何かありますか?私はすべて一緒にnginxを殺した、それが本当に停止したことを確認し、それを再起動し、アプリがまだ実行されて表示されます。nginxのノードアプリケーションをkillできません
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 ]