CentOS起動nodejsプログラム

262 ワード

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