-
Notifications
You must be signed in to change notification settings - Fork 909
开机启动配置
opensourceworker edited this page Apr 29, 2019
·
2 revisions
假定程序所在目录为 /root/starrtc-server
先进入目录:cd /root/starrtc-server
进入目录后新建脚本vim autostart.sh,内容如下(以启动voip视频通话服务为例):
#!/bin/bash
cd /root/starrtc-server
nohup ./voipServer > voipServer.log 2>&1 &
nohup ./msgServer > msgServer.log 2>&1 &
加可执行权限:chmod +x /root/starrtc-server/autostart.sh
开机启动:echo /root/starrtc-server/autostart.sh >> /etc/rc.local