1、pcre 安装
https://sourceforge.net/projects/pcre/files/pcre/
tar -zxvf pcre-8.45.tar.gz
cd pcre-8.45
./configure
make && make install
pcre-config --version
2、openssl 安装
https://www.openssl.org/source/
tar -zxvf openssl-3.1.1.tar.gz
cd openssl-3.1.1
./config
make && make install
3、zlib 安装
http://www.zlib.net/
tar -zxvf zlib-1.2.13.tar.gz
cd zlib-1.2.13
./configure
make && make install
4、nginx 安装
http://nginx.org/en/download.html
tar -zxvf nginx-1.24.0.tar.gz
cd nginx-1.24.0
#编译 nginx和openssl适配
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-openssl=/home/tools/openssl-3.1.1
make && make install
supervisor 管理配置
[program:nginx]
command= /usr/local/nginx/sbin/nginx -g 'daemon off;'
autostart=true
autorestart=true
stderr_logfile=/home/logs/nginx.err.log
stdout_logfile=/home/logs/nginx.out.log
user=root
logfile_maxbytes=50MB
logfile_backups=10
startsecs=1
stopsignal=INT
评论
发表评论