2016-04-14 11 views
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 ] 

答えて

0

はそれを考え出しました。 PM2は、プロセスが表示されない理由を私はまだ興味

$ ps -e|grep node 

$kill -9 XXXX 

:に私を導いたこと、このポストCan't find out where does a node.js app running and can't kill itを発見されましたか?私は間違いなくアプリを起動するためにそれを使用しました。

関連する問題