首页 > 其他 > 详细

centos7.0安装OpenResty

时间:2017-07-06 00:06:40      阅读:476      评论:0      收藏:0      [点我收藏+]
查看系统版本
[root@localhost redis-3.2.9]# cat /etc/system-release
CentOS Linux release 7.3.1611 (Core)
 
下载OpenResty,下载地址:https://openresty.org/cn/download.html
或者使用命令安装
mkdir -p /data/setupsoft
cd /data/setupsoft
wget https://openresty.org/download/openresty-1.11.2.3.tar.gz
#解压openresty
tar -zxvf openresty-1.11.2.3.tar.gz
#进入解压后的文件夹
cd openresty-1.11.2.3
 ./configure
make j2
make install

编译出错,依次出错报找不到如下对应的库,安装命令如下

yum install gcc
yum -y install pcre-devel
yum install openssl openssl-devel -y
注意
默认, --prefix=/usr/local/openresty 程序会被安装到/usr/local/openresty目录
您可以指定各种选项,比如
./configure --prefix=/opt/openresty \ --with-luajit \ --without-http_redis2_module \ --with-http_iconv_module \ --with-http_postgres_module
试着使用 ./configure --help 查看更多的选项
配置文件(./configure script)运行出错可以到 build/nginx-VERSION/objs/autoconf.err 找到。 VERSION 的地方必须与OpenResty版本号相对应
 

centos7.0安装OpenResty

原文:http://www.cnblogs.com/stimlee/p/7124068.html

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