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
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
本文标题:CentOS开机启动nodejs程序
本文链接:https://www.haomeiwen.com/subject/cbibaftx.html
网友评论