CentOS7 修改防火墙,增加外网可以访问的端口号:

vim /etc/sysconfig/iptables

增加一条 -A INPUT -p tcp -m state --state NEW -m tcp --dport 8000 -j ACCEPT 将具体的端口号写入其中,这里的端口号是 8000

cd /etc/init.d/iptables stop
#start 开启 #restart 重启

相关文章:

  • 2021-07-18
  • 2021-09-06
  • 2021-07-25
  • 2022-01-22
  • 2022-02-08
  • 2022-01-10
  • 2021-12-02
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2021-08-22
  • 2021-12-11
  • 2021-08-27
相关资源
相似解决方案