1、在安装nginx之前,需要先安装该模块需要依赖包
yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel
2、安装完成后,下载wsgi
pip install wsgi
3、安装nginx
wget http://nginx.org/download/nginx-1.9.2.tar.gz tar -zxvf nginx-1.9.2.tar.gz ./configure --prefix=/usr/local/nginx --with-md5=/usr/lib --with-sha1=/usr/lib --with-http_ssl_module --with-http_stub_status_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_realip_module make make install
时间: 2024-10-06 00:27:59