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