bin

openresty如何完美替换nginx

微笑、不失礼 提交于 2019-11-25 16:48:48
下载openresty wget https://openresty.org/download/openresty-1.15.8.1.tar.gz tar zxvf openresty-1.15.8.1.tar.gz cd openresty-1.15.8.1 安装openresty 查看当前nginx的编译配置 nginx -V 如下所示,"configure arguments"就是编译nginx时的配置 nginx version: nginx/1.14.0 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017 TLS SNI support enabled configure arguments: --with-http_ssl_module 编译openresty,把刚才的配置加到"configure"命令后方,如果需要使用lua也可以加上"--with-luajit" ./configure --with-http_ssl_module --with-luajit gmake && gmake install gmake即GNU make,使用它的原因是非GNU平台可能占用了make命令,在linux系统下不用考虑这个问题。GNU