`
educast
  • 浏览: 29443 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

centos linux 实现开机自动运行脚本

阅读更多

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

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics