You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
node /var/www/nodeJs/todoList/bin/www
node /var/www/nodeJs/chatroom/app.js
exit 0
The text was updated successfully, but these errors were encountered:
遇到的問題
請問如何在開機的時候就啟動多個node.js腳本 on linux
我把指令寫在/etc/rc.local 但只會啟動 node /var/www/nodeJs/todoList/bin/www
下面的都不會啟動
/etc/rc.local
The text was updated successfully, but these errors were encountered: