nginx安装
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx安装相关的知识,希望对你有一定的参考价值。
编译安装
install]# wget http://nginx.org/download/nginx-1.12.1.tar.gz
解压nginx包
install]# tar -zvxf nginx-1.12.1.tar.gz
查看配置选项
nginx-1.12.1]#./configure —help
nginx支持正则表达式先安装一个pcre包
nginx-1.12.1]# yum -y install pcre-devel
安装开发环境
nginx-1.12.1]# yum -y groupinstall “Development tools”
创建一个不允许登陆的用户nginx /sbin/nologin
编译
nginx-1.12.1]# ./configure prefix=/usr/local/nginx --user=nginx --group=nginx --http-log-path=/date/log/nginx --error-log-path=/date/log/nginx
--with-http_image_filter_module
--with-http_flv_module
--with-http_gunzip_module
--with-http_gzip_static_module
--with-http_stub_status_module
编译好后安装
nginx-1.12.1]# make install
yum安装
# yum -y install nginx
本文出自 “勤能补拙” 博客,请务必保留此出处http://echoroot.blog.51cto.com/11804540/1965920
以上是关于nginx安装的主要内容,如果未能解决你的问题,请参考以下文章