1. scp -r . ubuntu@118.184.0.64:/home/XXX
2. nohup node index.js &
任意空格继续,启动node js服务
ubuntu@xxx$ ps -aux | grep 4000
ubuntu 26711 0.0 0.0 10436 688 pts/0 R+ 11:57 0:00 grep --color=auto 4000
1. scp -r . ubuntu@118.184.0.64:/home/XXX
2. nohup node index.js &
任意空格继续,启动node js服务
ubuntu@xxx$ ps -aux | grep 4000
ubuntu 26711 0.0 0.0 10436 688 pts/0 R+ 11:57 0:00 grep --color=auto 4000
转载于:https://my.oschina.net/u/3075655/blog/812803