Nginx-1.12.1安装笔记
1、所需模块
- 模块名称:ngx_http_limit_conn_module
- 模块名称:ngx_http_limit_req_module
- 模块名称:ngx_http_geo_module
- 模块名称:ngx_http_map_module
- 模块名称:ngx_http_geoip_module
- 模块名称:naxsi
- 模块名称:nginx-limit-upstream
- 模块名称:nginx-upstream-jvm-route
2、安装环境介绍
平台 | IP | NGINX版本 | 安装模块 | |
---|---|---|---|---|
CentOS 6.7 64Bit | 192.168.2.245 | NGINX-1.12.1 | naxsi\nginx-limit-upstream\nginx-upstream-jvm-route |
3、Nginx安装步骤
3.1、安装系统工具
1 | [root@localhost ~]# yum install vim telnet wget nethogs htop glances dstat traceroute lrzsz goaccess ntpdate dos2unix openssl-devel tcpdump lrzsz fio -y |
3.2、安装编译开发组件
1 | [root@localhost ~]# yum groupinstall "Development Tools" -y |
3.3、安装EPEL源
1 | [root@localhost ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/e/epel-release-6-8.noarch.rpm |
3.4、安装NGINX各项依赖组件
1 | [root@localhost ~]# yum install pcre-devel zlib-devel libjpeg-devel libpng-devel freetype-devel openssl-devel curl curl-devel libxml2 libxml2-devel libjpeg libjpeg-devel libpng libpng-devel libmcrypt libmcrypt-devel openldap openldap-devel openssh-client -y |
3.5、解压nginx及各项模块
1 | [root@localhost soft]# unzip nginx-limit-upstream-master.zip |
3.1、安装nginx及各项模块
1 | [root@localhost soft]# cd nginx-1.12.1 |
3.6、测试与验证
1 | [root@localhost sbin]# pwd |