CentOS开机启动nodejs程序

字数 0阅读 282
ssh root@x.x.x.x

yum -y install nodejs

wget x.x.x.x/x.js

chmod +x /etc/rc.d/rc.local

vi /etc/rc.d/rc.local

-------------------------------------
Insert
node /root/x.js
:wq Enter
-------------------------------------

shutdown -r now

推荐阅读更多精彩内容