编写开机自动执行的脚本auto.sh
#!/bin/sh
#chkconfig: 2345 20 80
#description:Server reboot.Execute auto.sh
#client post port 80 redirect 9527
#sudo iptables -A PREROUTING -t nat -i eth0 -p tcp —dport 80 -j REDIRECT —to-port 9527
#auto.sh log
DIR=/home/linux-nice
echo "execute auto.sh" > $DIR/auto_log.txt
chkconfig命令
chkconfig命令检查、设置系统的各种服务。这是Red