linux 下安装 openresty-1.7.0.1
来源:互联网 发布:京九直通车知乎 编辑:程序博客网 时间:2024/05/18 00:45
1.先安装 c++ complier
yum install gcc gcc-c++ autoconf automake
2.下载pcre: http://www.pcre.org/
安装pcre-8.35
进入pcre-8.35目录运行 ./configure
make
make install
3. 安装openSSL
./config
make depend
make test (有错误)
make install
4. 进入openresty-1.7.0.1 目录
sudo ./configure --with-luajit --with-openssl=/home/ec2-user/software/openssl-1.0.1h --without-http_gzip_module
sudo gmake
sudo gmake install
5. 安装后 openresty 被安装在 /usr/local/openresty目录下
6. 启动nginx:
进入 /usr/local/openresty/nginx 目录
运行 nginx -p `pwd`/ -c conf/nginx.conf 命令
如果没有错误提示,则在浏览器中输入 http://localhost即可看到 nginx 启动页面
Q&A
启动nginx 时 nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
http://www.iitshare.com/error-while-loading-shared-libraries-libpcre-so-1.html
0 0
- linux 下安装 openresty-1.7.0.1
- Ubuntu 平台下OpenResty的安装
- openresty--centos7下开发环境安装
- openresty centos下开发环境安装
- Linux下openresty+redis 的权限控制
- Openresty 安装
- 安装openresty
- 安装OpenResty
- 安装OpenResty
- openresty--安装
- openResty-----安装
- CentOS6.3环境下openresty安装drizzle模块
- openresty--使用高版本的openssl(linux 环境下)
- [openresty]安装nginx_lua
- 安装openresty+redis+lua
- OpenResty安装 Mac
- CentOS6.5 安装 Openresty
- ubuntu14.04安装OpenResty
- POJ 1789-Truck History
- 大写文件夹名和.c和.h文件名
- C# 网页放大缩小(WebBrowser && AxWebBrowser)
- error: The requested URL returned error: 403 while accessing https://jacsice@github.com/jacsice/hous
- 匿名内部类访问外部类中的局部变量必须是final属性
- linux 下安装 openresty-1.7.0.1
- PAT Advanced Level 1051
- Jquery+HTML+CSS运用
- Ehcache详细解读
- PAT Advanced Level 1052
- 你独树一帜,在季节交替
- 的时光三等功时光
- android 反编译和代码解读
- Mybatis的介绍