Download

http://nginx.org/en/download.html

wget http://nginx.org/download/nginx-1.12.2.tar.gz

  • 检查是否安装nginx

find -name nginx

  • 安装需要的依赖

yum install gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel

安装nginx

tar -zxvf nginx-1.13.4.tar.gz
cd /developer/nginx-1.13.4/
./configure
make
make install

启动nginx

whereis nginx
cd /usr/local/nginx/sbin/
./nginx

results matching ""

    No results matching ""