1.下载keepalived包

下载地址:https://www.keepalived.org/download.html

$ cd /opt
$ wget https://www.keepalived.org/software/keepalived-2.0.16.tar.gz
$ tar -zxvf keepalived-2.0.16.tar.gz
$ cd keepalived-2.0.16

2.安装依赖

$ yum -y install kernel-headers kernel-devel

3.安装

#编辑安装
$ ./configure --with-kernel-dir=/lib/modules/$(uname -r)/build
$ make && make install
#创建软连接
$ cd /etc/sysconfig
$ ln -s /usr/local/etc/sysconfig/keepalived .
$ cd /etc/rc3.d/
$ ln -s /usr/local/etc/rc.d/init.d/keepalived S100keepalived
$ cd /etc/init.d/
$ ln -s /usr/local/etc/rc.d/init.d/keepalived .
#配置文件
$ cd /usr/local/etc/keepalived
$ cp keepalived.conf keepalived.conf.bak

docker安装 elasticsearch,filebeat,kibana 日志系统

参考文档 参考:https://github.com/maxyermayank/docker-compose-elasticsearch-kibana/blob/master/docker-compose.yml 参考:https://www.elastic.co/guid...

阅读全文

docker 安装 gitlab

命令安装 启动命令 docker run --detach \ --hostname 127.0.0.1 \ --publish 8181:8181 \ --name gitlab \ --restart always \ --volume /apps/do...

阅读全文

docker安装jenkins

命令 #开启jenkins,根本地8082端口绑定 -d 后台运行,--restart=always 跟随docker启动,-v 绑定本地目录 $ docker run --name jenkins -d -p 8082:8080 -p 50...

阅读全文

欢迎留言