openresty安装(MAC)
2017-08-05 10:33
399 查看
1、下载官方包 解压
#wget https://openresty.org/download/openresty-1.11.2.3.tar.gz[/code] 2、安装依赖:pcre(默认安装)、openssl#brew update #brew install pcre openssl3、安装#cd openresty-1.11.2.3 #./configure \ --with-cc-opt="-I/usr/local/opt/openssl/include/ -I/usr/local/opt/pcre/include/“ \ #指定依赖目录, 否则MAC下会找不到依赖 --with-ld-opt="-L/usr/local/opt/openssl/lib/ -L/usr/local/opt/pcre/lib/" \ --prefix=/Users/xuefeihu/software/openresty/ \ #自定义安装目录 -j84、启动#sudo ~/software/openresty/nginx/sbin/nginx -p ~/software/openresty/nginx/ -c ~/software/openresty/nginx/conf/nginx.conf-p指定开发目录、-c指定配置文件目录
5、查看#ps -ef | grep nginx
链接:http://moguhu.com/article/detail?articleId=12
相关文章推荐
- openresty学习之mac下安装
- OpenResty安装 Mac
- Mac系统的openresty编译安装
- mac上安装MySql
- mac 安装 cocoapods
- (四)mac安装与配置 python的IDE
- Mac下nodeJS 安装
- 如何在pc上安装mac os x leopard 10.5 6原版
- mac上Ruby环境安装教程
- mac安装与卸载mysql方法
- windows8.1使用虚拟机安装MAC系统注意事项及教程
- mac 环境下给虚拟目录 Virtualenv 的 tensorflow 安装 opencv
- MAC Elasticsearch安装
- mac下安装maven
- mac 安装Android studio 模拟器
- VMware11安装Mac OS X10提示不可恢复错误(vcpu-0)怎么办
- 转-MAC 下安装PHONEGAP开发环境
- xgboost之java、python安装 mac为例子
- Python学习--Mac安装Python3