centos下编译安装nginx

2026-02-17 02:53:02

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_module

make && make install

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

猜你喜欢