- 博客(66)
- 收藏
- 关注
转载 postgres高可用学习篇二:通过pgbouncer连接池工具来管理postgres连接
安装pgbouncer yum -y install pgbouncer node1:编辑pgbouncer.ini配置文件 cat /etc/pgbouncer/pgbouncer.ini [databases] postgres = host=127.0.0.1 port=5432 dbname=postgres [pgbouncer] logf...
2019-09-22 12:51:00
609
转载 postgres高可用学习篇一:如何通过patroni如何管理3个postgres节点
环境:CentOS Linux release 7.6.1810 (Core)内核版本:3.10.0-957.10.1.el7.x86_64 node1:192.168.216.130 node2:192.168.216.132 node3:192.168.216.134 一、安装postgres yum install https://download.postgre...
2019-09-22 11:36:00
1549
转载 centos7安装yum安装pip
pip是python中的一个包管理工具,可以对Python包的查找、下载、安装、卸载的作用。 yum -y install epel-release yum -y install python-pip 由于默认的pip源是国外的,所以下载速度会比较慢,pythonpip配置国内源 清华大学:https://pypi.tuna.tsinghua.edu.cn/s...
2019-09-22 11:08:00
396
转载 nginx1.15.10配置https转http
nginx版本号:nginx version: nginx/1.15.10 server { listen 443 default ssl; server_name app.test.com; if ($host != 'app.test.com'){ return 403; } ssl_certificate /usr/local/nginx/ssl/app.test...
2019-09-20 10:40:00
786
转载 zabbix4.2.5默认告警模板
产生告警: Problem: {EVENT.NAME} Problem started at {EVENT.TIME} on {EVENT.DATE} Problem name: {EVENT.NAME} Host: {HOST.NAME} Severity: {EVENT.SEVERITY} Original problem ID: {EVENT.ID} {T...
2019-09-18 09:10:00
389
转载 记录一次编译安装Pg_rman缺少依赖包的问题
系统版本:CentOS版本6.10(最终版) pg_rman:https://github.com/ossc-db/pg_rman -bash-4.1$ makegcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-...
2019-09-12 11:10:00
397
转载 使用Patroni和HAProxy创建高可用的PostgreSQL集群
操作系统:CentOS Linux release 7.6.1810 (Core) node1:192.168.216.130master node2:192.168.216.132 slave node3:192.168.216.136haproxy 这里仅测试,所以只部署了一主一丛,适用与测试环境,生产环境建议postgres至少1主2从,3个etcd节点,2个hapr...
2019-09-03 20:34:00
1261
转载 Zabbix4.0国内下载源
国内zabbix源总结 目前发现的有以下几个站点: 1.阿里巴巴开源镜像站(推荐使用) 地址:https://mirrors.aliyun.com/zabbix/ 2.华为开源镜像站(推荐使用) 地址:https://mirrors.huaweicloud.com/zabbix/ 3.清华大学开源软件镜像站 地址:https://mirror.tuna.tsi...
2019-08-28 11:38:00
2073
转载 centos7部署postgresql集群高可用 patroni + etcd 之patroni篇
实验环境:centos7.4纯净版 postgres版本: 9.6.15 etcd版本:3.3.11 patroni版本:1.6.0 patroni介绍可参考:https://github.com/zalando/patroni ip规划 192.168.216.130 node1 master 192.168.216.132 node2 slave 192.168.21...
2019-08-25 17:08:00
1681
转载 centos7部署etcd集群
实验环境:centos7.4纯净版 192.168.216.130 node1 master 192.168.216.132 node2 slave 192.168.216.134 node3 slave yum安装etcd yum install etcd yum list installed |grep -i etcd node1 etcd 配置 ...
2019-08-25 16:40:00
239
转载 docker-compose部署gitlab
一、安装docker-compose步骤可参考本博客其他文章 二、这里的ssl证书是使用letsencrypt生成,可参考文档https://my.oschina.net/u/3042999/blog/1858891 https://wzfou.com/letsencrypt/ 三、创建容器网络docker network create netgitlab ...
2019-08-23 08:55:00
255
转载 zabbix-agent主动模式和proxy
一、zabbix代理模式,缓解服务端压力zabbix_proxy.conf配置如下 more zabbix_proxy.conf | grep -v ^# | grep -v ^$ Server=zabbix服务端IP ServerPort=zabbix服务端端口 Hostname=fz_zabbix_proxy此处名称需要和web端添加的代理名称保持一致 ListenP...
2019-08-15 15:30:00
535
转载 docker-compose更新image命令
docker-compose stop docker-compose up -d --build 转载于:https://www.cnblogs.com/caidingyu/p/11350427.html
2019-08-14 10:39:00
7479
转载 shell脚本自动化安装pgsql10.5版本
看到有个大佬写了个很实用的脚本,于是这里做了转载 #!/bin/bash #进入软件的制定安装目录 echo "进入目录/usr/local,下载pgsql文件" cd /usr/local #判断是否有postgre版本的安装包 if [ -d post* ] then rm -rf /usr/local/post* echo "安...
2019-08-14 09:15:00
370
转载 Centos7.6安装docker-compose
官网地址:https://docs.docker.com/compose/install/ 运行此命令以下载Docker Compose的当前稳定版本 sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o...
2019-08-08 11:12:00
170
转载 CentOS7.6 yum方式安装redis最新版
sudo yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm sudo yum --enablerepo=remi install redis -y 转载于:https://www.cnblogs.com/caidingyu/p/11303547.html...
2019-08-05 16:00:00
304
转载 Centos7 yum安装postgresql 9.5
添加RPM yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm 安装PostgreSQL 9.5 yum install postgresql95-server postgresql95-co...
2019-08-01 22:48:00
335
转载 GitLab CI runner can't connect to tcp://localhost:2375 in kubernetes
报错的.gitlab-ci.yml配置如下 image: docker:latest services: - docker:dind variables: DOCKER_HOST: tcp://localhost:2375 stages: - package package: stage: package script: - d...
2019-07-31 11:15:00
619
转载 Server 2008 R2远程桌面授权,解决120天过期问题
转:https://blog.youkuaiyun.com/menghuanhuolong6/article/details/52588394 转载于:https://www.cnblogs.com/caidingyu/p/11226470.html
2019-07-22 16:07:00
527
转载 机房断电,导致xfs文件系统损坏
记一次机房断电,导致xfs文件系统损坏处理方法 挂载时报以下错误: mount: mount /dev/sdb on /dev/sdb failed: Structure needs cleaning 参考:http://www.voidcn.com/article/p-wsxhjhzb-bty.html 转载于:https://www.cnblogs....
2019-07-22 16:07:00
847
转载 CentOS 6.x 无法格式化大于16TB的ext4分区处理
CentOS 6.x 在格式化大于16TB的ext4分区时,会提示如下错误: mke2fs 1.41.12 (17-May-2010) mkfs.ext4: Size of device /dev/sda1 too big to be expressed in 32 bits using a blocksize of 4096. 原因在于CentOS 自带...
2019-07-22 15:08:00
629
转载 Ubuntu 14.04.2配置rsync
ubuntu系统自带rsync,首先配置/etc/default/rsync,启用daemon模式 修改/etc/rsyncd.conf配置文件 cat /etc/rsyncd.conf # sample rsyncd.conf configuration file # GLOBAL OPTIONS #motd file=/etc/motd log fi...
2019-07-18 10:00:00
175
转载 Docker部署nodejs应用并使用PM2作为守护进程
环境:centos7.6Docker version 18.06.0-ce mkdir /data cd /data 拉取最新keymetrics/pm2:latest-alpine镜像 docker pull keymetrics/pm2:latest-alpine 从github上拉取代码,先要安装git git clone https://...
2019-07-11 15:52:00
1505
转载 Ubuntu 14.04.2升级openssh7.9
环境:Ubuntu 14.04.2 目的:openssh版本6.6升级为openssh7.9 准备以下3个包 http://www.zlib.net/ https://www.openssl.org/source/ http://www.openssh.com/portable.html 避免升级出现错误导致ssh服务挂掉,会导致一系列的麻烦事,所以提前安装telnet...
2019-07-03 15:42:00
430
转载 CentOS7.6编译安装redis5.0
yum install gcc wget http://download.redis.io/releases/redis-5.0.0.tar.gz tar xvf redis-5.0.0.tar.gz [root@instance-0ihsw5jn java]# cd ./redis-5.0.0/ [root@instance-0ihsw5jn redis-5.0.0]# m...
2019-06-28 14:54:00
123
转载 centos7 升级openssh到openssh-8.0p1版本
centos7 升级openssh到openssh-8.0p1版本 环境介绍 centos7.6升级完毕测试登录ssh以及重启后登录ssh均无问题。 前期请自行配置好yum源(如果不会请百度) 整个过程不需要卸载原先的openssl包和openssh的rpm包。不影响我们的操作 本文的环境都是系统自带的openssh,没有经历过手动编译安装方式。如果之前有手动...
2019-06-28 08:59:00
188
转载 CentOS7.6安装docker最新版
注意Centos7.4系统以下需要升级内核,否则会安装失败 yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo yum...
2019-06-24 16:08:00
99
转载 通过iptables限制docker容器端口
如何限制docker暴露的对外访问端口 docker 会在iptables上加上自己的转发规则,如果直接在input链上限制端口是没有效果的。这就需要限制docker的转发链上的DOCKER表。 # 查询DOCKER表并显示规则编号 iptables -L DOCKER -n --line-number # 修改对应编号的iptables 规则,这里添加了允许访问ip的限制...
2019-06-24 15:27:00
2350
转载 nginx设置反向代理,获取真实客户端ip
upstream这个模块提供一个简单方法来实现在轮询和客户端IP之间的后端服务器负荷平衡。 upstream abc.com { server 127.0.0.1:8080; server 127.0.0.1:80; server 127.0.0.1:8000; } server { listen...
2019-06-24 15:10:00
111
转载 CentOS7.6使用Virt-manager创建虚拟机报错
Virt-manager创建虚拟机遇到的一个问题解决 环境:centos7.6 系统内核:3.10.0-957.el7.x86_64 virsh version 根据库编译:libvirt 4.5.0使用库:libvirt 4.5.0使用的 API: QEMU 4.5.0运行管理程序: QEMU 2.0.0 the CPU is incompatible with ...
2019-06-24 13:06:00
1084
转载 CentOS7添加/删除用户和用户组
1.新建用户 adduser testuser //新建testuser 用户 passwd testuser //给testuser 用户设置密码 2.建工作组 groupadd testgroup //新建test工作组 3.新建用户同时增加工作组 useradd -g testgroup testuser //新建testuser用户并增加...
2019-06-24 09:16:00
197
转载 ubuntu14.04 部署nfs服务
安装nfs服务 apt-get install nfs-kernel-server 修改配置文件,共享目录为/var/www,*号可替换为客户端IP地址,*默认为任何部署了nfs客户端的IP可以挂载该目录(默认共享目录仅支持一台客户端挂载) root@CS151230001:~# cat /etc/exports # /etc/exports: the access...
2019-06-21 09:42:00
232
转载 centos7 firewall指定IP与端口访问(常用)
基本使用 启动:systemctl start firewalld 关闭:systemctl stop firewalld 查看状态:systemctl status firewalld 开机禁用:systemctl disable firewalld 开机启用:systemctl enable firewalld 配置firewalld-cmd 查看版本:firewall...
2019-06-12 10:39:00
1052
转载 linux下yum安装最新稳定版nginx
摘抄nginx官网文档 URL:http://nginx.org/en/linux_packages.html#stable To set up the yum repository for RHEL/CentOS, create the file named/etc/yum.repos.d/nginx.repowith the following contents: [n...
2019-06-12 09:28:00
118
转载 centos7下用命令安装node&pm2
一、下载node安装包 1、wgethttps://npm.taobao.org/mirrors/node/latest-v12.x/node-v12.4.0-linux-x64.tar.gz 二、解压 1、tar -xvfnode-v12.4.0-linux-x64.tar.gz 三、添加链接 1、ln -s /data/node-v12.4.0-linux-x64/bi...
2019-06-12 09:24:00
247
转载 腾讯蓝鲸资源分配
合理分配到5台10.0.1.1nginx,rabbitmq,kafka,zk,es,consul10.0.1.2mongodb,kafka,zk,es,mysql,beanstalk,consul10.0.1.3paas,cmdb,kafka,zk,es,consul,influxdb10.0.1.4bkdata,fta,paas,appt10.0.1.5appo,job,gs...
2019-06-05 10:53:00
194
转载 Centos7 安装谷歌浏览器
配置下载yum源 cd /etc/yum.repos.d vim google-chrome.repo [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgke...
2019-05-30 10:55:00
229
转载 Ubuntu安装Apache 2.4.7常见问题解答
环境:Apache 2.4.7 on Ubuntu 14.04 启动apache服务报错:Unknown Authz provider: ip 进入mod模块目录 cd /etc/apache2/mods-available 执行以下命令加载该模块 a2enmod authz_host.load 启动apache服务报错:Invalid command 'Requ...
2019-05-28 11:35:00
622
转载 Ubuntu常见服务启停
停止rpcbind服务service portmap stop 停止nfs服务service nfs-kernel-server stop 停止Telnet服务/etc/xinetd.d/telnet status/etc/xinetd.d/telnet stop/etc/xinetd.d/telnet start 转载于:https://www.cnblogs.com/caidi...
2019-05-17 14:26:00
212
转载 LVM 'Can’t open /dev/sdb1 exclusively. Mounted filesystem?' Problem
在将几块盘做LVM时,遇到一个之前都没遇到过的问题: root@ubuntu:~# pvcreate /dev/sdc1 Can't open /dev/sdc1 exclusively. Mounted filesystem? 首先第一反应就是查看这个分区是否已经在使用了,但是没有。 查看硬盘的一些信息: root@ubuntu:~# cat /...
2019-05-17 09:18:00
381
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅