1. Nginx 反向代理,负载均衡,动静分离,工作原理及优化 nginx配置反向代理。 vim Nginx.conf Server模块中配置 Listen 80 Server_name ip; 在server段里面的location加上proxy_pass http://ip:端口; Nginx配 ...
分类:
系统相关 时间:
2020-06-05 22:53:43
阅读次数:
204
一、iptables扩展模块(续) 1、state a、The "state" extension is a subset of the "conntrack" module."state" allows access to the connection tracking state for thi ...
分类:
系统相关 时间:
2020-06-04 18:06:53
阅读次数:
85
1.查看开放端口列表 firewall-cmd --list-ports --查看开放端口列表 开启防火墙 systemctl start firewalld 关闭防火墙 systemctl stop firewalld 查看防火墙状态 systemctl status firewalld 2.开放 ...
分类:
其他好文 时间:
2020-06-04 10:18:44
阅读次数:
153
安装nginx 省略。。。 开启防护墙 通过systemctl start firewalld开启防火墙,没有任何提示即开启成功。 开放指定端口 firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --zone= ...
分类:
Web程序 时间:
2020-06-03 23:22:43
阅读次数:
181
环境 centos7系统 关闭防火墙 systemctl stop firewalld systemctl disable firewalld 关闭SELINUX sudo vim /etc/sysconfig/selinux 重启一下 sudo reboot 将SELINUX 改为disable ...
分类:
其他好文 时间:
2020-06-03 17:34:13
阅读次数:
104
创建文件夹: mkdir name 删除文件夹下所有内容 : rm -rf * 复制文件夹下所有内容到指定文件夹 cp -r /etc/html/web/* /etc/html/web2/ 开放指定端口: iptables -I INPUT -p tcp --dport 8888 -j ACCEPT ...
分类:
系统相关 时间:
2020-06-03 15:31:09
阅读次数:
59
1.基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # 永久关闭防火墙 chkco ...
分类:
其他好文 时间:
2020-06-02 18:44:01
阅读次数:
58
1:查看防火状态 systemctl status firewalld service iptables status 2:暂时关闭防火墙 systemctl stop firewalld service iptables stop 3:永久关闭防火墙 systemctl disable firew ...
分类:
系统相关 时间:
2020-05-31 23:16:44
阅读次数:
121
1.查看防火墙状态: firewall-cmd --state 2.启动防火墙 systemctl start firewalld 3.关闭防火墙 systemctl stop firewalld 4.检查防火墙开放的端口 firewall-cmd --permanent --zone=public ...
分类:
其他好文 时间:
2020-05-31 15:49:46
阅读次数:
55