- 论坛徽章:
- 0
|
1)建立rc.local
touch /etc/rc.local
chmod 755 /etc/rc.local
cd /etc/rc2.d (自己的runlevel)
ln -s ../rc.local ./S99rc.local
cd /etc/rc3.d
ln -s ../rc.local ./S99rc.local
查看自己目前的runlevel
cat /etc/inittab |grep initdefault
id:2:initdefault: (我的在runlevel 2)
2)DHCP绑定网卡
nano /etc/default/dhcp
3)修正iptable full问题
echo 600 > /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established
(2.4内核要重新编译,2.6不用,十分钟清一次conntrack表,与上面rc.local一同使用,开机运行)
4)服务自启动问题
apt-get install rcconf
rcconf
iptables -t nat -A POSTROUTING -s 192.1*8.1. -o eth0 -j SNAT --to 服务器ip地址
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15090/showart_81275.html |
|