background picture of the home page

Hi,Friend

实用shell脚本实践(持续更新)

实用shell脚本实践 批量创建用户(指定名称与指定位数随机密码) [root@web01 ~]# cat useradd_new.sh #!/usr/bin/bash . /etc/init.d/functions # 让用户输入前缀名称 zjh # 让用户输入创建的数量 10 # 使

thumbnail of the cover of the post

Docker——Harbor镜像仓库高可用搭建

Docker——Harbor镜像仓库高可用搭建 方案一:共享存储 多个harbor使用同一个共享存储(保存镜像数据和元数据信息) 多个harbor使用同一个数据库 配置负载均衡,将外部请求分发到各个harbor节点 架构简单,数据实时同步,但依赖共享存储,数据库有单点故障风险 方案二:镜像复制 部署

thumbnail of the cover of the post

Docker——Harbor镜像仓库创建

Docker——Harbor镜像仓库创建 Harbor安装配置 安装docker与docker-compose step 1: 安装必要的一些系统工具 sudo yum install -y yum-utils Step 2: 添加软件源信息 yum-config-manager --add-rep

thumbnail of the cover of the post

Ansible-playbook(集群管理实例)

Ansible-playbook(集群管理) 0、准备项目目录与hosts主机清单文件 [root@manager ~]# mkdir cluster [root@manager ~]# cp project/ansible.cfg project/hosts cluster/ [root@mana

thumbnail of the cover of the post

Ansible-playbook

Ansible-playbook playbook由一个或多个play组成,一个play可以包含多个task任务(使用多个不同的模块完成同一件事情) playbook书写格式 缩进:YAML使用固定的缩进风格表示层级关系,每个缩进由两个空格组成(不能使用tabs) 冒号:所有冒号后面都需要有空格(除

thumbnail of the cover of the post

Nginx-LNMP架构

Nginx-LNMP架构 实现过程: 1、用户发起 user--->http--->nginx--->fastcgi--->php-fpm--->tcp--->mysql 2、返回给用户 mysql--->tcp--->php-fpm--->fastcgi--->nginx--->http--->u

thumbnail of the cover of the post

Nginx-集群证书优化

Nginx-集群证书优化 upstream s_zjh { server 172.16.1.7:80; server 172.16.1.8:80; } # 监听https协议,如果有https请求,则代理至后端应用节点,走http协议,后端回传http协议,但代理回传给用户走htt

thumbnail of the cover of the post

Nginx-动静分离

Nginx-动静分离 将动态请求与静态请求分开处理 单机动静分离 tomcat配置: [root@web01 ~]# yum install java -y [root@web01 ~]# wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.104/

thumbnail of the cover of the post

Nginx-rewrite

Nginx-rewrite 主要实现url地址重写,url地址跳转 rewrite应用场景 Rewrite重写模块 if条件判断指令 需求:匹配nginx请求中包含id=2356的,然后代理到10.16.3.5的8080端口 [root@web01 ~]# cat /etc/nginx/conf.d

thumbnail of the cover of the post

Nginx

Nginx DNS查询过程 TCP创建 HTTP创建 请求的method get:获取url资源(看朋友圈) post:提交,更新或创建资源,是非幂等的(发布朋友圈) put:向指定url传送更新的资源,是幂等的(更新朋友圈) delete:向指定url删除资源(删除朋友圈) head:用于检查 (

thumbnail of the cover of the post