摘要: 1. 目标 nginx 反向代理,路径映射的过程是什么?如何配置路径映射规则? 2、location 路径匹配 2.1 匹配规则: location 路径正则匹配: 符号说明 ~ 正则匹配,区分大小写 ~* 正则匹配,不区分大小写 ^~ 普通字符匹配,如果该选项匹配,则,只匹配改选项,不再向下匹配其 阅读全文
posted @ 2021-05-25 15:39 Macoffee 阅读(2468) 评论(1) 推荐(0) 编辑
摘要: rsync工具介绍 1 rsync命令是一个远程数据同步工具,可通过LAN/WAN快速同步多台主机间的文件。 2 rsync使用所谓的“rsync算法”来使本地和远程两个主机之间的文件达到同步,这个算法 3 只传送两个文件的不同部分,而不是每次都整份传送,因此速度相当快。 4 5 从字面上的意思你可 阅读全文
posted @ 2021-05-19 16:53 Macoffee 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 1、安装 rsync 和 inotifywait yum install -y rsync inotify-tools 2、编写监控脚本 #!/bin/bash src=/data/ # 需要同步的源路径 des=data # 目标服务器上 rsync --daemon rsync_passwd_f 阅读全文
posted @ 2021-05-19 15:57 Macoffee 阅读(264) 评论(0) 推荐(0) 编辑
摘要: centos7 在安装后,通常我们通过df -h 来查看磁盘空间的时候率。如下: [root@oracle01 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 46G 32G 14G 71% / 阅读全文
posted @ 2020-12-22 15:26 Macoffee 阅读(616) 评论(0) 推荐(1) 编辑
摘要: 准备工作: 首先要在ansible所在主机,与被管控机器做好互信。 A/B服务器设置: vim /etc/ssh/sshd_config PermitRootLogin yes RSAAuthentication yes PubkeyAuthentication yes 1 ssh-keygen - 阅读全文
posted @ 2020-12-17 19:38 Macoffee 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 当使用arp -s无法将ip和mac绑定的时候,可以使用一下命令来绑定。 netsh i i show in然后找到网线或网卡对应的idx netsh -c "i i" add neighbors 11 "网关IP" "Mac地址"这里11是idx号。 例如:netsh -c "i i" add n 阅读全文
posted @ 2020-12-10 19:05 Macoffee 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 下面介绍CentOS7 KVM环境下制作CentOS7 qcow2格式镜像 如果是CentOS7 KVM环境是VMware虚拟机,需要CPU开启虚拟化 1、配置yum镜像源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud. 阅读全文
posted @ 2020-12-03 15:54 Macoffee 阅读(2458) 评论(0) 推荐(0) 编辑
摘要: 在redhat服务器可以直接使用命令: sudo usermod -l newusername root 对于其他系统linux 如果提示: usermod: user root is currently logged in 则需要使用另外的方式: vi /etc/passwd 按i键进入编辑状态 阅读全文
posted @ 2020-12-01 19:17 Macoffee 阅读(938) 评论(0) 推荐(0) 编辑
摘要: 官方文档:http://teleport.eomsoft.net/doc#!1 一、Teleport介绍 Teleport是触维软件推出的一款简单易用的堡垒机系统,具有小巧、易用、易于集成的特点,支持RDP和SSH协议的跳转。 Teleport由两大部分构成: Teleport跳板核心服务 WEB操 阅读全文
posted @ 2020-10-29 16:45 Macoffee 阅读(1904) 评论(0) 推荐(0) 编辑
摘要: 一、fluentd.tar包载入image docker load -i fluentd.tar docker login https://x.x.x.x -u xxx -p xxx docker tag 50670d4d129b x.x.x.x/my_harbor/fluentd:v1.0 doc 阅读全文
posted @ 2020-10-21 11:37 Macoffee 阅读(534) 评论(0) 推荐(0) 编辑