Linux 程序自启动设置
  eVzzROmRiJco 2023年11月24日 15 0

1. chmod 777 /etc/rc.local

2. 更改内容:

#!/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.

cd /home/orangepi/5GZS01/projects/TL-5GZS01/

sudo ./TL_5GS01_Local

exit 0


3. sudo chmod +x /etc

4. sudo systemctl enable rc-local

5. sudo systemctl start rc-local.service

6. sudo systemctl status rc-local.service

7. sudo reboot


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月24日 0

暂无评论

推荐阅读
eVzzROmRiJco