centos查看端口是否已开放/etc/init.d/iptables status
centos开放端口/sbin/iptables -I INPUT -p tcp --dport 8000 -j ACCEPT/etc/rc.d/init.d/iptables save/etc/rc.d/init.d/iptables restart