Linux 安装nginx

1.下载文件

2.将文件放在/usr/local/nginx下

3.解压 tar zxvf

4.安装

yum -y install pcre-devel

yum -y install openssl openssl-devel

./configure --prefix=/usr/local/nginx --conf-path=/usr/local/nginx/nginx.conf  

make

make install

 /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

猜你喜欢

转载自zhuyuehua.iteye.com/blog/2256693