咱们编写了一个脚本要让LINUX系统启动的时候加载自动运行,个人版本:RHEL AS 4
我如今编写了一个iptables.sh的脚本。
保存路径为:/etc/rc.d/iptables.sh
想系统启动是自动加载iptables.sh
修改/etc/rc.d/rc.local
命令:vi /etc/rc.d/rc.local
在rc.local文件末尾加入iptables.sh脚本的存放路径,/etc/rc.d/iptables.sh
保存退出 wq w:保存 q:退出ide