[root@localhost ~]# yum -y安裝pcre-devel zlib-devel openssl
源安裝nginx:
[root @ localhost ~]# useradd-M-s/sbin/nologin nginx
[root @ localhost ~]# tar zxf nginx-1 . 8 . 1 . tar . gz
[root @ localhost ~]# CD nginx-1 . 8 . 1
[root @ localhost nginx-1 . 8 . 1]#。/配置\
- prefix=/usr/local/nginx \
- user=nginx \
- group=nginx \
- with-http_stub_status_module
[root @ localhost nginx-1 . 8 . 1]# make
[root @ localhost nginx-1 . 8 . 1]#進行安裝