nginx下载地址
安装依赖
yum install pcre-devel zlib zlib-devel openssl openssl-devel -y
下载nginx解压后进入根目录
设置安装目录
./configure --prefix=/usr/local/nginx
安装
make
make install
配置nginx
vim nginx/conf/nginx.conf
启动
./sbin/nginx
Keepalived部署
安装依赖包
yum install -y curl gcc openssl-devel libnl3-devel net-snmp-devel
yum install -y keepalived
配置文件/etc/keepalived/keepalived.conf
配置虚拟ip virtual_ipaddress {虚拟ip地址}
启动服务service keepalived start
日志位置 /var/log/message