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

centos 7 安装 elasticsearch,Kibana

centos 7 安装 elasticsearch 1.打开网址 https://www.elastic.co/downloads/elasticsearch 2.复制 RPM 包的下载地址: https://artifacts.elastic.co/downlo...

阅读全文

根据pfx文件生成 nginx 所用SSL证书文件

我将尝试解释使用.pfx文件的最简单方法,该文件可用于在NGINX上安装SSL。 我们首先使用openssl使用以下命令提取CRT文件 openssl pkcs12 -in ./YOUR-PFX-FIL...

阅读全文

Linux中查看各文件夹大小命令:du -h –max-depth=1

du [-abcDhHklmsSx] [-L <符号连接>][-X <文件>][--block-size][--exclude=<目录或文件>] [--max-depth=<目录层数>][--help][--vers...

阅读全文

欢迎留言