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

Redirect port from 8080 to 80 in linux server(2)
如果没有安装iptables该怎么办呢?
在/etc/xinetd.d下加入http服务
service http
{
 disable = no
 socket_type = stream
 wait = no
 redirect = 127.0.0.1 8080
 log_type = FILE logpath
}


重启/etc/init.d/xinetd restart

参考资料:
1 http://www.centos.org/docs/4/html/rhel-rg-en-4/s1-tcpwrappers-xinetd-config.html
2 http://linux.vbird.org/linux_basic/0560daemons.php