欢迎光临
我们一直在努力

编译安装nginx

一、需要的依赖包先使用yum安装

 yum install -y vim lrzsz tree screen psmisc lsof tcpdump wget ntpdate  gcc gcc-c++ glibc glibc-devel pcre pcre-devel openssl openssl-devel systemd-devel  net-tools iotop bc zip unzip zlib-devel bash-completion nfs-utils automake libxml2  libxml2-devel libxslt libxslt-devel perl perl-ExtUtils-Embed 

二、在nginx官网上下载源码包文件

三、解压缩

四、编译

./configure –prefix=/apps/nginx \ –user=nginx \ –group=nginx \ –with-http_ssl_module \ –with-http_v2_module \ –with-http_realip_module \ –with-http_stub_status_module \ –with-http_gzip_static_module \ –with-pcre \ –with-stream \ –with-stream_ssl_module \ –with-stream_realip_module 


五、安装

make && make install


赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。