CentOS开机启动nodejs程序

ssh [email protected]

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

你可能感兴趣的:(CentOS开机启动nodejs程序)