随笔分类 - nginx
摘要:vim keepalived_nginx.pyi# coding=utf-8import os,time,subprocess,threadingdef ping(Sip,Dip): Ip='ping -c 1 -I %s %s'%(Sip,Dip) p = subprocess.Popen([Ip
阅读全文
摘要:BL01/02安装keepalived yum install -y keepalived /etc/keepalived/keepalived.conf中 LB01/LB02 global_defs {# notification_email { 往谁发邮件# acassen@firewall.l
阅读全文
摘要:nginx1/2:228/229 172.16.0.0/24 mysql1/mysql2:226/227 172.16.0.0/24 LB1/LB2 :224/225 192.16.3.0/24 随便一主机上生成证书/或者下载买一个 证书生成可以忽略 cd /etc/nginx/ mkdir ssl
阅读全文
摘要:vim nginx_php.pyi # -*- coding: utf-8 -*-import os,timedef create__file(file_path,msg): f=open(file_path,"a") f.write(msg) f.closei = os.system('rm -r
阅读全文
摘要:proxy 192.168.3.21 nginx 192.168.3.222 tomcat 192.168.3.223 nginx: mkdir jia images vim /etc/nginx/conf.d/www.conf server { listen 80; server_name www
阅读全文
摘要:nginx1 :222 略 nginx2 :223 略 mysql_nfs :22 略 LB_nginx :21 /etc/nginx/nginx.conf 中添加4层代理 include /etc/nginx/L4.conf/*.conf; stream { upstream ssh222 { s
阅读全文
摘要:192.168.3.222 nginx+php 略 192.168.3.22 mariadb 略 192.168.3.21 proxy_nginx 21host:安装nginx [root@localhost conf.d]# cat /etc/nginx/proxy_params proxy_se
阅读全文
摘要:安装ufs 两主机均安装 yum install rpcbind nfs-utils -y systemctl restart nfs systemctl enable nfs nfs host mkdir /nfs chmod 777 /nfs echo '/data/nfs *(rw,sync,
阅读全文
摘要:打包数据库 mysqldump -uroot -p --all-databases --single-transaction > `date +%F-%R`_mysql_alldatabases.sql //--all-databases所有库 --single-transaction 数据一致性(
阅读全文
摘要:lnmp略 /etc/nginx/conf.d/default.conf server { listen 80; server_name localhost; root /usr/share/nginx/html/wordpress; index index.php; location ~ \.ph
阅读全文
摘要:linux 7.1 ningx 1.1.6 mariadb5.5.6 php7.1 如果本地安装rpm包可用yum localinstall -y rpm包名安装依赖关系 ningx 1.1.6 mariadb5.5.6略 php7.1只能通过第三方安装 移除原有php yum remove php
阅读全文
摘要:/etc/nginx/nginx.conf中 http {...... log_format main '$remote_addr - $remote_user [$time_iso8601] "$request" ' '$status $body_bytes_sent "$http_referer
阅读全文
摘要:基于用户_明文传输http 工具安装,yum install -y httpd-tools 设置用户名和密码htpasswd -b -c /etc/nginx/.auth.conf testnginx 123456 /etc/nginx/conf.d/default.conf中在监控部分添加 loc
阅读全文
摘要:egrep -v '#|^$' /etc/nginx/conf.d/default.off > /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf 中 目录索引 location /download { #相对根目录下的down
阅读全文
摘要:nginx官网右侧download-->Pre-Built Packages栏目中点stable and mainline 改/etc/yum.repos.d/nginx.repo [nginx-stable]name=nginx stable repobaseurl=http://nginx.or
阅读全文

浙公网安备 33010602011771号