1.端口转发
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
2.查看端口占用
netstat –apn
3.编辑防火墙
vi /etc/sysconfig/iptables
4.开启防火墙
service iptables start
5.查看启动项
chkconfig
6.更改文件权限
chmod -R 777 /data/*
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
netstat –apn
vi /etc/sysconfig/iptables
service iptables start
chkconfig
chmod -R 777 /data/*