服务器系统:ubuntu16.04,服务器类型:腾讯云
一,nginx 最新软件安装
1.依赖安装:sudo apt-get install libssl-dev openssl zlib1g-dev
软件安装
sudo wget /project/pcre/pcre/8.44/pcre-8.
tar zxvf pcre-8.
cd pcre-8.44
./configure
make & make install
软件安装
wget /download/nginx-1.17.
tar zxvf nginx-1.17.
cd nginx-1.17.10
./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.44
二,修改配置
更改配置文件/etc/nginx/sites-available/default,将里面的root /var/www/html更改为 root /path/to/your/html/file,注意/path/to/your/html/file不能是/home目录,一般放在/usr/local/...
特别说明:修改/etc/nginx/和/usr/local/webserver/nginx/conf/配置文件并不起作用
标签:pcre,8.44,网页,tar,http,gz,nginx,服务器
来源: /zyy-summary/p/