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 安装 bento4 处理mp4 为 MPEG-DASH流

Bento4 Bento4是一个C ++类库和工具,旨在读取和写入ISO-MP4文件。此格式在国际规范ISO / IEC 14496-12、14496-14和14496-15中定义。该格式是Apple Quicktime...

阅读全文

centos7 yum安装ffmpeg

centos7 yum安装ffmpeg $ yum install epel-release $ yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7....

阅读全文

apache-kafka 和apache-zookeeper 设置 systemd服务和开机启动

参考:https://gist.github.com/vipmax/9ceeaa02932ba276fa810c923dbcbd4f 启动命令 #启动 $ systemctl daemon-reload $ systemctl enable kafka-zookeeper.s...

阅读全文

欢迎留言