linux 开机自启动
程序员文章站
2022-03-25 11:42:35
...
run.sh 文件内容如下:
#!/bin/bash
cd /home/lyh/CMCC
echo "You Haved Started !" > log.txt
/etc/rc.d/rc.local 文件中添加如下内容:
bash /home/lyh/CMCC/run.sh
#!/bin/bash
cd /home/lyh/CMCC
echo "You Haved Started !" > log.txt
/etc/rc.d/rc.local 文件中添加如下内容:
bash /home/lyh/CMCC/run.sh
下一篇: nginx 配置上传文件大小限制
推荐阅读