linux如何安装nginx

作者:如沐春风 | 创建时间: 2023-06-10
nginx是一款优秀的负载均衡、反向代理加速软件,同时也是一款web发布软件。下面就讲叙下如何在linux平台下源码安装nginx...
linux如何安装nginx

操作方法

从nginx官网上下载源码包

安装pcre cd /usr/local/src tar zxvf pcre-8.10.tar.gz cd pcre-8.10/ ./configure make && make install

编译安装nginx tar zcvf nginx-1.9.9.tar.gz cd nginx-1.9.9 ./configure --user=www --group=www --add-module=../ngx_cache_purge-1.0 --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module make && make instal

点击展开全文

更多推荐