您现在的位置是:亿华云 > 系统运维

Nginx+Keepalived实现Web服务器高可用

亿华云2025-10-08 23:17:58【系统运维】4人已围观

简介复制#添加运行用户 shell>useradd-s/sbin/nologin-Mwww #安装依赖 shell>yum-y

Nginx+Keepalived实现Web服务器高可用
服务复制#添加运行用户  shell > useradd -s/sbin/nologin -M www  #安装依赖  shell > yum -y install pcre-devel zlib-devel openssl-devel  #编译安装  shell > cd /root/soft  shell > tar xvf nginx-1.14.2.tar.gz  shell > cd nginx-1.14.2  shell > ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module && make && make install 1.2.3.4.5.6.7.8.9.

很赞哦!(93367)