读书人

Redirect port from 8080 to 80 in li

发布时间: 2013-10-12 11:54:04 作者: rapoo

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

读书人网 >UNIXLINUX

热点推荐