我正在使用nginx和PM2在Ubuntu 14上运行一个小节点(通过express)服务器。我跑了pm2
停止,重新启动我的nginx服务器,但应用程序仍在运行。还有什么我需要重启/杀死吗?我甚至一起杀死了nginx,检查它确实停止了,然后重新启动它,应用程序仍然显示正在运行。
pm2
list / stop:
┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬────────┬──────────┐
│ 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 :(得分:0)
想出来。找到了这篇帖子Can't find out where does a node.js app running and can't kill it,这导致我:
jQuery.widget("custom.hoverSelectmenu", jQuery.ui.selectmenu, {
_create: function() {
this._super();
var that = this;
this._on( this.button, {
mouseenter: function( event ) {
that.open();
},
mouseleave: function( event ) {
if (event.toElement != that.menu.get(0)) {
that.close();
}
}
});
this._on( this.menu, {
mouseleave: function( event ) {
if (event.toElement != that.button.get(0)) {
that.close();
}
}
});
}
} );
jQuery('.selectbox').hoverSelectmenu({
});
我还好奇为什么PM2没有显示这个过程?我当然用它来启动应用程序。