nginx设置端口号和开启防火墙
[root@bogon sbin]# cd ..
[root@bogon nginx]# ll
总用量 4
drwx------. 2 nobody root 6 3月 7 11:50 client_body_temp
drwxr-xr-x. 2 root root 4096 3月 7 11:49 conf
drwx------. 2 nobody root 6 3月 7 11:50 fastcgi_temp
drwxr-xr-x. 2 root root 40 3月 7 11:49 html
drwxr-xr-x. 2 root root 58 3月 7 11:50 logs
drwx------. 2 nobody root 6 3月 7 11:50 proxy_temp
drwxr-xr-x. 2 root root 19 3月 7 11:49 sbin
drwx------. 2 nobody root 6 3月 7 11:50 scgi_temp
drwx------. 2 nobody root 6 3月 7 11:50 uwsgi_temp
[root@bogon nginx]# cd conf
[root@bogon conf]# firewall -cmd --list -all
bash: firewall: 未找到命令...
[root@bogon conf]# firewall-cmd --list-all
public (active)target: defaulticmp-block-inversion: nointerfaces: ens32sources: services: dhcpv6-client sshports: protocols: masquerade: noforward-ports: source-ports: icmp-blocks: rich rules: [root@bogon conf]# firewall-cmd --add-service=http -permanent
usage: see firewall-cmd man page
firewall-cmd: error: unrecognized arguments: -permanent
[root@bogon conf]# firewall-cmd --add-service=http -permanent
usage: see firewall-cmd man page
firewall-cmd: error: unrecognized arguments: -permanent
[root@bogon conf]# sudo firewall-cmd --addd-port=80/tcp --permanent
usage: see firewall-cmd man page
firewall-cmd: error: unrecognized arguments: --addd-port=80/tcp
[root@bogon conf]# sudo firewall-cmd --add-port=80/tcp --permanent
success
[root@bogon conf]# firewall-cmd --list-all
public (active)target: defaulticmp-block-inversion: nointerfaces: ens32sources: services: dhcpv6-client sshports: protocols: masquerade: noforward-ports: source-ports: icmp-blocks: rich rules: [root@bogon conf]# firewall-cmd --reload
success
[root@bogon conf]#
nginx设置端口号和开启防火墙相关推荐
- pycharm flask 设置端口号和开启debug
不成功的话就关闭pycharm并重启
- 修改远程桌面的端口号并进行防火墙设置
一.修改远程桌面默认的端口号 进入以下注册表项 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpw ...
- 【运维】设置远程桌面端口号及加入防火墙规则
@echo off color 0a title @@ 修改Windows XP/2003/2008远程桌面服务端口号 @@ echo ******************************** ...
- mac设置端口号转发到默认端口80、443
1.需要这种设置的场景 我们一些开发的时候需要将一些网站的请求拦截在本地服务下. 下文将以 test.com 为例 2.设置host open /private/etc/hosts 添加如下内容 12 ...
- vue开发环境修改本地启动的端口号和开启https
categories: [前端,vue] thumbnail: /images/fe/leetcode.jpg toc: true vue开发环境修改本地启动的端口号 当我们使用脚手架搭建项目时,re ...
- 如何测试端口号是否开启
很多情况下,我们想知道某个服务器.电脑的某些个端口是否打开,怎么去测试呢?今天就教大家两招. 首先端口分tcp.udp之分,所以同一个端口号还有tcp协议和udp协议之分. 我们一般最常见的工具是te ...
- Nginx通过端口号区分虚拟机
新建虚拟机 区别虚拟机的方式很多,这里通过端口来区分 第一步 修改配置文件 打开nginx的配置文件,添加一个server server{listen 81;server_name localhost ...
- nginx 设置端口访问网站
2019独角兽企业重金招聘Python工程师标准>>> server { listen 8004; ...
- linux防火墙关闭启用增减端口号命令
查看防火墙信息 firewall-cmd --list-all 查看防火墙状态 firewall-cmd --state systemctl status firewalld 添加端口号到防火墙中,永 ...
最新文章
- python 打印所有汉字
- python如何读取excel数据-python怎么从excel中读取数据?
- 【Netty】NIO 缓冲区 ( Buffer ) ( 缓冲区读写类型 | 只读缓冲区 | 映射字节缓冲区 )
- 矩阵分析与多元统计12 0-1矩阵 交换矩阵与Kronecker乘积
- 阿里巴巴叔同谈云原生和云计算
- 给ApplicationContext容器中添加组件的方法(@Bean的使用)
- Go语言使用PostgreSQL数据库
- 2022年PMP考试安排
- 用户故事 | 排定优先级
- Ubuntu常用C语言IDE,Ubuntu下常用IDE的安装
- 四大行业晋身今秋求贤大户 游戏人才缺口奇大
- 计算机消极影响英语作文,大学英语作文:电脑游戏的危害
- 大一计算机专业学生自我月小结,大学生学习过程月度总结
- Python学习_2015年12月14日
- QGIS操作教程——图说中国人口
- 基于Mind+、MOTT实现人工智能
- EOS智能合约开发系列(一)
- CentOS7使用yum安装MySQL——指定版本
- 优麒麟 配置java_优麒麟中安装虚拟机(ARM64)
- 外行假装内行,我也来谈谈SAP BAPI和BADI
热门文章
- ENVI入门系列教程---二、图像分析---11.分类后处理
- Chrome扩展框架-浏览器插件安装方法
- 计算机类设备资产管理,智的设备设施资产管理系统
- 基于C语言实现把WAV双声道文件差分成两个单声道文件
- 跟着大咖学前端(国内知名前端技术汇总)
- KISS原则(Kiss Principle)
- html 箭头下拉,jQuery下拉箭头样式 简单实用(原创)
- NC65合并报表如何取消上报并退回以及注意事项和相关问题总结
- 处理 ios端 输入框拉起键盘页面上移的问题
- 【Failed to initialize NVML: Driver/library version mismatch(已解决)】