- [root@izwz99pke7zxkniuln5hxsz ~]# ps aux | grep "pm2"
- root 19529 0.0 0.0 112660 972 pts/0 R+ 21:37 0:00 grep --color=auto pm2
- root 23081 0.0 1.5 921420 29072 ? Ssl Oct01 0:26 PM2 v3.1.3: God Daemon (/root/.pm2)
- [root@izwz99pke7zxkniuln5hxsz ~]# ps aux | grep "node"
- root 6392 0.0 7.2 1385572 136820 ? Ssl Oct06 0:56 node /www/wwwroot/ghost-cli/current/index.js
- root 19532 0.0 0.0 112660 976 pts/0 R+ 21:37 0:00 grep --color=auto node
复制代码 按理而言 pm2 应当以非 root 用户身份执行,而宝塔面板直接以 root 身份执行了,算是安全隐患。
|
|