首页 > 其他 > 详细

homestead中nginx替换为openresty

时间:2018-07-13 18:22:39      阅读:145      评论:0      收藏:0      [点我收藏+]
wget https://openresty.org/download/openresty-1.11.2.2.tar.gz
tar -xzvf openresty-1.11.2.2.tar.gz
cd openresty-1.11.2.2

查看 nginx 编译选项:
root@iZm5eabkgmsfy2phj5pr1xZ:/usr/local/src/openresty-1.11.2.2# nginx -V
nginx version: nginx/1.10.3
(省略)
./configure   --prefix=/usr/share/openresty --with-luajit --without-http_redis2_module --with-http_stub_status_module --with-http_v2_module --with-http_gzip_static_module --with-http_sub_module --with-openssl=/usr/local/src/openssl-1.0.2m

make
make install
最好把nginx -V查出来的配置写在新的配置上,注意原来的nginx安装在/usr/share/nginx下,现在要安装在/usr/share/openresty下需要把环境变量中nginx的启动脚本重新软链到新
的nginx中

homestead中nginx替换为openresty

原文:https://www.cnblogs.com/tiktok/p/9306478.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!