有些端口不被root权限的帐号调用,我们可以通过端口映射实现如下: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080