摘要: jpress、Zabbix 完成集群的基础、完整集群架构日志收集功能 Elk、自动化上线代码 git/jenkins、实现全站HTTPS加密、搭建 NginxProxyCache 、搭建 Nginx+Keepalived 、MHA 高可用、MySQL 数据库环境搭建,主从搭建 阅读全文
posted @ 2020-07-14 20:37 Gshelldon 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 搭建过程 注意防火墙和selinux的影响可以先关闭。 一、安装nginx # 1、更改nginx源安装nginx [root@web01 ~]# vi /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl 阅读全文
posted @ 2020-07-14 20:14 Gshelldon 阅读(570) 评论(0) 推荐(0) 编辑
摘要: location的匹配 匹配符 匹配规则 优先级 = 精确匹配 1 ^~ 以某个字符串开头 2 ~ 区分大小写的正则匹配 3 ~* 不区分大小写的正则匹配 4 !~ 区分大小写不匹配的正则 5 !~* 不区分大小写不匹配的正则 6 / 通用匹配,任何请求都会匹配到 7 # 通用匹配,任何请求都会匹配 阅读全文
posted @ 2020-07-14 20:00 Gshelldon 阅读(345) 评论(0) 推荐(0) 编辑
摘要: nginx的常用模块 ngx_http_index_module Syntax: index file ...; Default: index index.html; Context: http, server, location location / { index index.html; } n 阅读全文
posted @ 2020-07-14 19:50 Gshelldon 阅读(612) 评论(0) 推荐(0) 编辑
摘要: nginx的日志管理 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$h 阅读全文
posted @ 2020-07-14 19:41 Gshelldon 阅读(1990) 评论(0) 推荐(0) 编辑
摘要: nginx 的三种虚拟主机配置方法 nginx三种虚拟主机配置的方法. 基于端口 在生产环境中一般使用端口或者域名。 [root@web01 /etc/nginx/conf.d]# cat web01.conf server { listen 80; server_name 10.0.0.7; location / { root /c 阅读全文
posted @ 2020-07-14 19:19 Gshelldon 阅读(763) 评论(0) 推荐(0) 编辑