Fork me on GitHub
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页
摘要: 点击这里下载插件安装即可 或者直接访问官网下载 这个文件不能直接上传,自行下载即可 阅读全文
posted @ 2021-06-04 11:12 Alex-Lzy 阅读(1072) 评论(0) 推荐(0) 编辑
摘要: 一般/proc/下的数据,想永久生效,都需要放在/etc/sysctl.conf 如何需要修改如/proc/sys/net/nf_conntrack_max这个的参数,需要将net后面的斜杠换成点后 vim /etc/sysctl.conf net.nf_conntrack_max=656666 重 阅读全文
posted @ 2021-06-04 09:28 Alex-Lzy 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 虚拟用户: 所有虚拟用户会统一映射为一个指定的系统帐号:访问共享位置,即为此系统帐号的家目录 各虚拟用户可被赋予不同的访问权限,通过匿名用户的权限控制参数进行指定 虚拟用户帐号的存储方式:文件:编辑文本文件,此文件需要被编码为hash格式奇数行为用户名,偶数行为密码db_load -T -t has 阅读全文
posted @ 2021-06-04 09:24 Alex-Lzy 阅读(613) 评论(0) 推荐(0) 编辑
摘要: iptables/netfilter网络防火墙: (1) 充当网关 (2) 使用filter表的FORWARD链 192开头的IP地址模拟内网,使用的是虚拟机中的NAT模式,172开头的IP地址这里充当外网IP,使用的是桥接 172.16.8.78 外网IP地址 192.168.1.7 内网IP地址 阅读全文
posted @ 2021-06-04 09:19 Alex-Lzy 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 禁止两种ping IP地址的两种方法 一、直接修改/proc/sys/net/ipv4/icmp_echo_ignore_all 文件 将值修改为'1'则表示开始运行禁止PING 将值修改为'0'则表示停止运行禁止PING 二、直接通过重定向修改 执行:禁止ping echo 1 > /proc/s 阅读全文
posted @ 2021-06-04 09:11 Alex-Lzy 阅读(217) 评论(0) 推荐(0) 编辑
摘要: return code [text]; #返回客户端指定的状态码和文本说明return code URL;return URL;停止处理,并返回给客户端指定的响应码(包括: 204, 400, 402 — 406, 408, 410, 411, 413, 416, 500 — 504),并对 301 阅读全文
posted @ 2021-06-03 18:41 Alex-Lzy 阅读(213) 评论(0) 推荐(0) 编辑
摘要: ngx_http_rewrite_module模块:将用户请求的URI基于PCRE regex所描述的模式进行检查,而后完成重定向替换 一、使用if判断,通过return,将http跳转到https vim /etc/nginx/conf.d/test.conf server { listen 44 阅读全文
posted @ 2021-06-03 17:43 Alex-Lzy 阅读(2024) 评论(1) 推荐(1) 编辑
摘要: 1、生成证书 cd /etc/pki/tls/certs/ make www.a.net.crt umask 77 ; \/usr/bin/openssl genrsa -aes128 2048 > www.a.net.keyGenerating RSA private key, 2048 bit 阅读全文
posted @ 2021-06-03 15:01 Alex-Lzy 阅读(664) 评论(0) 推荐(0) 编辑
摘要: 使用模块 ngx_http_gzip_module 用gzip方法压缩响应数据,节约带宽 一、启用或禁用gzip压缩 gzip on | off; 二、压缩比由低到高:1 到 9, 默认:1 gzip_comp_level level; 压缩比越高,越消耗CPU 三、匹配到客户端浏览器不执行压缩 g 阅读全文
posted @ 2021-06-03 12:36 Alex-Lzy 阅读(625) 评论(0) 推荐(0) 编辑
摘要: yum服务器IP地址:192.168.1.9 测试服务器地址:192.168.1.4 一、安装搭建仓库所需软件 1、配置nginx 源 vim /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http 阅读全文
posted @ 2021-06-02 17:59 Alex-Lzy 阅读(3045) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 24 下一页