Ubuntu 开机自动启动

# 开机启动
2018-12-13
在etc目录下建立loraserver.sh文件,【**注意**:设置脚本的运行属性】
其内容为

1 #!/bin/bash
2 cd /home/zqkj/loraserver-docker
3 echo 67777208 | sudo docker-compose up -d //通过管道将密码传进去


然后在《启动应用程序》中添加一项
其命令为:/etc/loraserver.sh

猜你喜欢

转载自www.cnblogs.com/suiius1608/p/10112140.html