标签:选择 wget oca pre tar gzip 编译 make str
//在线下载,或下载好后上传服务器
wget http://nginx.org/download/nginx-1.14.0.tar.gz
//解压
tar -zxvf nginx-1.14.0.tar.gz
//进入解压后的目录
cd nginx-1.14.0
//选择安装目录,编译安装
./configure --prefix=/usr/local/nginx
make && make install
#编译出错
./configure: error: the HTTP gzip module requires the xxx library.
安装 yum install xxx-devel -y
#启动出错
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
创建文件 /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
标签:选择 wget oca pre tar gzip 编译 make str
原文地址:https://www.cnblogs.com/higreen/p/9403281.html