nignx源码安装

1、打开nignx官网:http://nginx.org/en/download.htmlhtml

2、先安装依赖软件:nginx

yum -y install pcre-develide

yum -y install openssl openssl-develhtm

3、检测而且配置
./configure --prefix=/usr/local/soft/nginx --sbin-path=/usr/local/soft/nginx/sbin/nginx --conf-path=/usr/local/soft/nginx/config/nginx.conf --error-log-path=/usr/local/soft/nginx/logs/error.log --pid-path=/usr/local/soft/nginx/logs/nginx.pid --http-log-path=/usr/local/soft/nginx/logs/access.logssl

4、make && make installget

相关文章
相关标签/搜索