一命令安装nginx

#!/bin/bash

yum -y install wget pcre-devel openssl openssl-devel libtool gcc automake autoconf libtool make

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

tar -zxvf nginx-1.8.0.tar.gz -C /usr/local

cd /usr/local/nginx-1.8.0 

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

make && make install‍

原文地址:https://www.cnblogs.com/kingsy/p/7881937.html