centos编译安装nginx
2015-12-03 00:00
609 查看
摘要: centos编译安装nginx
####安装步骤####
下载nginx及nginx-sticky-module、zlib等依赖包
yum install pcre-devel
yum install GeoIP-devel
yum install openssl-devel
执行下面编译安装脚本
配置nginx
user nobody;#去掉注释
新建提示不存在的文件夹
####参考资料####
nginx官网http://nginx.org/
####安装步骤####
下载nginx及nginx-sticky-module、zlib等依赖包
yum install pcre-devel
yum install GeoIP-devel
yum install openssl-devel
执行下面编译安装脚本
./configure --user=nginx --group=nginx --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-select_module --with-poll_module --with-http_ssl_module --with-http_geoip_module --with-zlib=../zlib-1.2.8 --add-module=../nginx-sticky-module make make install
配置nginx
user nobody;#去掉注释
新建提示不存在的文件夹
####参考资料####
nginx官网http://nginx.org/
相关文章推荐
- 从源码安装Mysql/Percona 5.5
- nginx代理指定目录
- 访问Nginx发生SSL connection error的一种情况
- Centos6 编译安装Python
- Nginx+Naxsi部署专业级Web应用防火墙
- 硬盘安装CentOS 6.2以及添加GRUB启动菜单
- CentOS 6.2实战部署Nginx+MySQL+PHP
- 在 AppImage、Flathub 和 Snapcraft 平台上搜索 Linux 应用
- nginx中http核心模块的配置指令2
- nginx中http核心模块的配置指令3
- nginx中http核心模块的配置指令4
- nginx中http的fastcgi模块的配置指令1
- CentOS 7系统配置上的变化解析
- 解决vc中unable to connect to the MKS:Internal error问题
- Nginx 学习笔记(一)
- 网站502与504错误分析