标签:
一、下载nginx,解压到/usr/local/nginx
tar -zxvf nginx-1.9.9.tar.gz
mv nginx-1.9.9 /usr/local/nginx
二、安装相关依赖 yum -y install pcre-devel openssl openssl-devel
三、执行
./configure --prefix=/usr/local/nginx
make
make install
查看是否安装成功
cd /usr/local/nginx/sbin
./nginx -t
启动nginx
./nginx
标签:
原文地址:http://www.cnblogs.com/oyx305/p/5636276.html