1、使用该执行打开端口文件
vi /etc/sysconfig/iptables

2、随便复制一行现有内容,将你要打开的端口设置上就行了,这里是打开80端口
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

3、输入:wq保存退出
4、service iptables restart,使设置生效


参考:https://zhidao.baidu.com/question/646656030269651725.html

查找nginx安装路径 find / -name nginx 

相关文章:

  • 2022-01-16
  • 2021-10-07
  • 2021-07-31
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-08-09
猜你喜欢
  • 2021-07-27
  • 2022-12-23
  • 2021-07-09
  • 2021-12-05
  • 2022-12-23
  • 2021-11-14
  • 2022-01-18
相关资源
相似解决方案