#!/bin/sh #for one install nginx #for wangjiadongge #install centos source rpm -Uvh http://mirrors.yun-idc.com/epel/6Server/x86_64/epel-release-6-8.noarch.rpm #install plugin yum install gcc gcc-c++ openssl-devel pcre-devel zlib-devel -y #create user and group groupadd nginx useradd nginx -g nginx -s /sbin/nologin -M #cd /tmp/ [ -d /tmp/download ] || mkdir -p /tmp/download cd /tmp/download/ #wget nginx from www.nginx.org wget http://nginx.org/download/nginx-1.8.1.tar.gz tar zxvf nginx-1.8.1.tar.gz cd nginx-1.8.1 ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module make && make install #end
时间: 2024-10-08 11:13:21