首页 > 其他 > 详细

openresty安装

时间:2019-04-11 19:51:13      阅读:102      评论:0      收藏:0      [点我收藏+]
一、安装
1.安装依赖
yum install pcre-devel openssl-devel gcc curl postgresql-devel

2.官网下载源码包
http://openresty.org/cn/download.html

  1. 新建项目目录结构
    mkdir work
    cd work
    mkdir {conf,logs}

4.源码编译
./configure --prefix=/usr/local/openresty/ --with-http_stub_status_module --with-luajit --without-http_redis2_module --with-http_iconv_module --with-http_postgres_module --with-stream

gmake && gmake install

5.添加环境变量
vim /etc/profile
PATH=/usr/local/openresty/nginx/sbin:$PATH
export PATH

6.配置文件编写
vim conf/nginx.conf # 内容就是nginx配置文件格式

7.启动
nginx -p pwd/ -c conf/nginx.conf

openresty安装

原文:https://blog.51cto.com/haoyonghui/2377398

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