Nginx之linux安装

准备材料:

nginx-1.6.2.tar.gz

安装:

1.解压:

tar -zxvf nginx-1.6.2.tar.gz

2.安装gcc,cc:

yum install gcc-c++ libstdc++-devel

3.安装pcre-devel:

yum -y install pcre-devel

4.安装openssl:

yum -y install openssl openssl-devel

5.configure,进入nginx所在的目录:

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

6.make make install:

make && make install

7.启动:

/usr/local/nginx/sbin/nginx

8.停止:

/usr/local/nginx/sbin/nginx -s stop

   

 

你可能感兴趣的:(linux)