【Services】【Web】【Nginx】静态下载页面的安装与配置

1. 拓扑

 

F5有自动探活机制,如果一台机器宕机,请求会转发到另外一台,省去了IPVS漂移的麻烦

F5使用轮询算法,向两台服务器转发请求,实现了负载均衡

2. 版本:

2.1 服务器版本:RHEL7.3

2.2 内核版本:3.10.0-514.el7.x86_64

2.3 NGINX版本:1.10.3(http://nginx.org/download/nginx-1.10.3.tar.gz)

3. 安装:

3.1 操作系统安装:

3.2 NGINX安装:

3.2.1 解压:

[root@cftjlds01 src]# pwd
/usr/local/src
[root@cftjlds01 src]# tar xf nginx-1.10.3.tar.gz 
[root@cftjlds01 src]# ls
nginx-1.10.3  nginx-1.10.3.tar.gz
[root@cftjlds01 src]# cd nginx-1.10.3
[root@cftjlds01 nginx-1.10.3]# ls
auto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  man  README  src

3.2.2 安装:

./configure 
  --prefix=/usr/local/nginx 
  --error-log-path=/var/log/nginx/error.log 
  --http-log-path=/var/log/nginx/access.log 
  --pid-path=/var/run/nginx/nginx.pid  
  --lock-path=/var/lock/nginx.lock 
  --user=nginx 
  --group=nginx 
  --with-http_ssl_module 
  --with-http_flv_module 
  --with-http_stub_status_module 
  --with-http_gzip_static_module 
  --http-client-body-temp-path=/var/tmp/nginx/client/ 
  --http-proxy-temp-path=/var/tmp/nginx/proxy/ 
  --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ 
  --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi 
  --http-scgi-temp-path=/var/tmp/nginx/scgi 
  --with-pcre 
  --with-debug

  

原文地址:https://www.cnblogs.com/demonzk/p/6394574.html