Ubuntu 16.4
init root
1 | sudo passwd root |
change root
1 | su root |
print where am i
1 | pwd |
change home dir
1 | cd ~ |
add [user] to sudo
1 | gpasswd -a copy sudo |
install soft
apt-get install
1 | su [username] |
install node env
1 | sudo apt-get install curl |
npm change registry
1 | npm -v |
install pm2
1 | cnpm install -g pm2 |