Linux failed to install pm2!

1. Execute npm install-g pm2

clipboard.png

2.pm2 pm2 start app.js

clipboard.png

pm2

3.ln -s /root/myapp/pm2 /usr/local/bin

clipboard.png

still failed to solve the problem

messed up for a long time because no soft connection was created.


ln -s /root/node-v8.9.0-linux-x64/lib/node_modules/pm2/bin/pm2 /usr/local/bin
:ln: failed to create symbolic link  "/usr/local/bin/pm2" : File exists
:mv /usr/local/bin/pm2 /tmp/   OK  




ln-s / root/xxxx/pm2 / usr/local/bin

just create a soft link


sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/pm2" "/usr/local/bin/pm2"
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ede606-4978e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ede606-4978e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?