摘要: apt-get install -y zabbix-agentsed -i -e 's/Server=127.0.0.1/Server=10.11.10.230,10.11.30.120/g' -e 's/ServerActive=127.0.0.1/ServerActive=10.11.10.23 阅读全文
posted @ 2020-05-06 17:09 alexhe 阅读(86) 评论(0) 推荐(0) 编辑
摘要: pg主机: 开用户 createuser -s -P barman 密码barman1234 创建replication用户 createuser -P --replication streaming_barman 密码streaming_barman1234 ssh-keygen barman主机 阅读全文
posted @ 2020-04-27 15:47 alexhe 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 主apt-get install postgresql-11sudo -u postgres psqlalter user postgres with password 'alex1234';vim /etc/postgresql/11/main/pg_hba.confhost all all 0. 阅读全文
posted @ 2020-04-20 15:35 alexhe 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 主库sudo -u postgres psqlcreate user replica with replication password '123456'; vim /etc/postgresql/11/main/postgresql.conflisten_addresses = '*' # 监听所 阅读全文
posted @ 2020-03-27 09:49 alexhe 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 25.3. 连续归档和时间点恢复(PITR) 摘自http://www.postgres.cn/docs/11/continuous-archiving.html 第一步建立wal归档 wal_level配置成replica或更高 archive_mode为on 配置archive_command, 阅读全文
posted @ 2020-03-23 11:20 alexhe 阅读(465) 评论(0) 推荐(0) 编辑
摘要: server: yum -y install nfs-utils cat /etc/exports/nfs 10.11.0.0/16(rw,sync,no_root_squash,no_subtree_check) systemctl enable rpcbind systemctl restart 阅读全文
posted @ 2019-12-27 10:11 alexhe 阅读(950) 评论(0) 推荐(0) 编辑
摘要: nginx 配置 root@ranchers1:/etc/nginx/sites-enabled# cat alexserver { listen 801; listen [::]:801; root /var/www/html; index index.html index.htm index.n 阅读全文
posted @ 2019-11-27 14:43 alexhe 阅读(433) 评论(0) 推荐(0) 编辑
摘要: localhost.crt-bakvim /etc/netplan/50-cloud-init.yaml 写入网卡 root@master:~# cat /etc/netplan/50-cloud-init.yaml # This file is generated from information 阅读全文
posted @ 2019-11-21 10:17 alexhe 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 20200616一篇es的好文: https://www.cnblogs.com/cjsblog/p/9495024.html es下载: https://thans.cn/mirror/elasticsearch.html 3台es集群 ▷ elasticsearch 7.3.2▷ filebea 阅读全文
posted @ 2019-11-18 14:03 alexhe 阅读(1139) 评论(0) 推荐(0) 编辑
摘要: 查看filename中含有abc所在行后4行内容 cat filename | grep abc -A4 查看filename中含有abc所在行前4行内容 cat filename | grep abc -B4 2种方法打印匹配行的前后5行 grep -5 '关键字' 文件名 grep -C 5 ' 阅读全文
posted @ 2019-11-12 11:14 alexhe 阅读(179) 评论(0) 推荐(0) 编辑