iptables防火墙 1、基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # 永 ...
分类:
其他好文 时间:
2018-10-10 23:48:30
阅读次数:
177
注意:firewalld服务有两份规则策略配置记录,配置永久生效的策略记录时,需要执行"reload"参数后才能立即生效: Permanent:永久生效的 RunTime:现在正在生效的 1.查看当前区域 2.查看防火墙状态,需要注意的是,设置端口规则时防火墙必须是启动状态 3.配置需要开发的端口 ...
分类:
其他好文 时间:
2018-10-10 14:17:15
阅读次数:
201
centos7版本 1.查看已开放的端口(默认不开放任何端口) firewall-cmd --list-ports 2.开启80端口 firewall-cmd --zone=public(作用域) --add-port=80/tcp(端口和访问类型) --permanent(永久生效) 3.重启防火 ...
分类:
其他好文 时间:
2018-10-06 23:11:13
阅读次数:
206
from flask import Flask,session from datetime import timedelta import os app = Flask(__name__) app.config['SECRET_KEY'] = os.urandom(24)#随机24的字符串 app.... ...
分类:
其他好文 时间:
2018-10-05 17:28:00
阅读次数:
211
查询端口号80 是否开启:firewall cmd query port=80/tcp 永久开放80端口号:firewall cmd permanent zone=public add port=80/tcp 移除80端口号:firewall cmd permanent zone=public re ...
分类:
其他好文 时间:
2018-10-01 13:42:03
阅读次数:
752
计算机专用英语词汇1695个词汇表1.单词说明: command n. 命令,指令 [k?'mɑ:nd] 单词拼写 名词 单词含义 音标(发音) 提示:着重记忆单词对应的意思,有能力最好词性也记忆。2.词性说明: n 名词v 动词vi 非及物动词vt 及物动词 conj 连词prep 介词pron ...
分类:
其他好文 时间:
2018-09-30 23:18:56
阅读次数:
303
location =/ { rewrite index.html permanent; try_files $uri $uri/ /index.html; } ...
分类:
其他好文 时间:
2018-09-26 16:09:37
阅读次数:
931
http重定向到https使用了nginx的重定向命令。那么应该如何写重定向?之前老版本的nginx可能使用了以下类似的格式rewrite ^/(.*)$ http://domain.com/$1 permanent; 或者rewrite ^ http://domain.com$request_ur... ...
分类:
Web程序 时间:
2018-09-25 15:23:50
阅读次数:
180
服务端 # ls Discuz_X3.1_SC_UTF8.zip 在客户端根目录下pwd # pwd /root 回到服务端 # scp -r Discuz_X3.1_SC_UTF8.zip root@192.168.100.110:/root/ The authenticity of host ' ...
分类:
系统相关 时间:
2018-09-18 20:52:38
阅读次数:
247
1.端口管理 (1)列出DMZ区域开放的端口 (2)8080端口加入dmz区 (3)将UDP端口段加入public区域,并永久生效 2.网卡管理 (1)列出public zone所有网卡 (2)将eno1添加到public区域,并使其永久生效 (3)将eno1从public区域删除,并添加到work ...
分类:
其他好文 时间:
2018-09-14 23:12:35
阅读次数:
407