日期:2014-05-16  浏览次数:20521 次

在线求助!!rc.local文件不执行(100分)
我在rc.local 增加了几条命令 开机的时候都不执行


执行/etc/rc.local 没有问题,主要问题就是开机貌似不执行rc.local

------解决方案--------------------
你是什么系统 如果系统的/etc/rc.local存在 肯定会执行?

你添加的什么命令?你说没有执行 你判断的标准和依据是什么?


------解决方案--------------------
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/etc/mbx2009d.sh &
/init.d/pptpd start
ifconfig eth0:0 192.168.55.1 up
/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.55.0/24 -j MASQUERADE
~
~

------解决方案--------------------
参考http://blog.163.com/lgh_2002/blog/static/44017526201032803748503/
希望对你有所帮助