
怎样在linux下安装nginx,pcre,zlib,openssl
1个回答
展开全部
rpm安装组件包:
[root@localhost ~]# yum -y install 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]# ./configure \
--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]# make install
[root@localhost ~]# yum -y install 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]# ./configure \
--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]# make install
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询