centos下编译安装nginx

2025-07-20 04:16:10

1、gzip -d nginx-1.10.2.tar.gz #解压 tar -xf nginx-1.10.2.tar #解压

2、安装组件: yum install openssl openssl-devel pcre pcre-devel gcc # gcc:GNU Compiler 潮贾篡绐Collection(GNU编译器套件)

3、install: ./configure --with-http_ssl_module --with-http_v2_modulemake && make install

4、启动服务:/usr/loca/nginx/sbin/start

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢