web服务
文章平均质量分 93
时倾 | 职业人生
这个作者很懒,什么都没留下…
展开
-
nginx.conf配置文件简单说明
nginx.conf配置文件简单说明一,nginx主要部分介绍二,nginx通用配置文件常用指令说明1,main全局配置:2,http服务器:3,模块http_proxy:4,模块http_gzip5,server虚拟主机6,模块upstream7,location三, nginx配置文件结构一,nginx主要部分介绍Nginx配置文件主要分成四部分:main(全局设置)、server(主机设置)、upstream(上游服务器设置,主要为反向代理、负载均衡相关配置)和 location(URL匹配特定位原创 2021-02-18 14:22:02 · 727 阅读 · 0 评论 -
nginx限流方案的实现(三种方式)
通过查看nginx官方文档,小弟查看到了三种nginx限流方式。1、limit_conn_zone2、limit_req_zone3、ngx_http_upstream_module前两种只能对客户端(即单一ip限流),并且文档也很全,但是经过测试发现,还是无法达到官方文档所说的结果(可能小弟的测试方法有问题)。这里先简单的介绍一下前两种:1、limit_conn_zone1.1nginx配置http{ limit_conn_zone $binary_remote_addr zone=o转载 2020-07-10 15:30:51 · 582 阅读 · 0 评论 -
使用Docker搭建LAMP环境,上线wordpress
1,环境系统版本:CentOS Linux release 7.5.1804docker版本:Docker version 1.13.1主机IP地址:192.168.116.128前提条件:关闭selinux关闭防火墙已经安装好docker2,拉取mysql和PHP镜像[root@localhost ~]# docker pull mysql[root@localhost ~]# docker pull php:7.2-apache3,创建网络[root@localhost ~]原创 2020-05-19 11:11:07 · 810 阅读 · 2 评论 -
Apache+Tomcat动静分离
1,装jdk环境[root@localhost ~]# rpm -ivh jdk-8u131-linux-x64_.rpm[root@localhost ~]# java -versionjava version “1.8.0_131”Java™ SE Runtime Environment (build 1.8.0_131-b11)Java HotSpot™ 64-Bit Server VM (build 25.131-b11, mixed mode)2,解压Tomcat包并建立相关目录[原创 2020-05-12 21:14:02 · 308 阅读 · 0 评论 -
NGINX优化
一.修改软件名称和版本号防止黑客攻击[root@localhost core]# pwd/usr/local/src/nginx-1.8.1/src/core[root@localhost core]# vim nginx.h#define nginx_version 8008001#define NGINX_VERSION "8.12.0"#define N...原创 2020-04-25 17:10:22 · 384 阅读 · 0 评论