# npm install -g pm2
npm WARN optional dep failed, continuing [email protected]
/usr/local/software/node-v4.2.1-linux-x86/bin/pm2 -> /usr/local/software/node-v4.2.1-linux-x86/lib/node_modules/pm2/bin/pm2
/usr/local/software/node-v4.2.1-linux-x86/bin/pm2-dev -> /usr/local/software/node-v4.2.1-linux-x86/lib/node_modules/pm2/bin/pm2-dev
[email protected] /usr/local/software/node-v4.2.1-linux-x86/lib/node_modules/pm2
?..? [email protected]
?..? [email protected]
?..? [email protected]
?..? [email protected]
?..? [email protected]
?..? [email protected]
?..? [email protected]
?..? [email protected] ([email protected])
?..? [email protected] ([email protected])
?..? [email protected]
?..? [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
?..? [email protected] ([email protected])
?..? [email protected] ([email protected])
?..? [email protected] ([email protected])
?..? [email protected] ([email protected])
?..? [email protected]
?..? [email protected] ([email protected], [email protected])
?..? [email protected] ([email protected])
?..? [email protected] ([email protected])
?..? [email protected] ([email protected])
?..? [email protected]
?..? [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
?..? [email protected] ([email protected])
?..? [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
?..? [email protected]
然后 输入指令: mp2
-bash: pm2: command not found
求指教!
PS: 使用 PM2 是用来实现 Node.js 程序永久后台
3
Kuro 2015-10-23 09:32:13 +08:00
在 PATH 中加上 /usr/local/software/node-v4.2.1-linux-x86/bin/pm2 应该就没问题了。
|
4
Kuro 2015-10-23 09:37:14 +08:00
噢,纠正一下,是 /usr/local/software/node-v4.2.1-linux-x86/bin/
|