您当前的位置: 首页 > 网络技术  > 服务器教程 浏览
ngx_openresty服务器安装步骤
发布时间:2015-12-13    点击率:次    来源:www.sytcke.com    作者:电脑技术学习网

 ngx_openresty服务器安装步骤 三联

  为什么是OpenResty?

  OpenResty允许开发人员使用lua编程语言构建现有的Nginx的C模块,支持高流量的应用程序。

  安装OpenResty

  依赖的软件包:

  perl 5.6.1+

  libreadline

  libpcre

  libssl

  Debian 和 Ubuntu系统:

  apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make

  Fedora 、RedHat 和 centos系统:

  yum install readline-devel pcre-devel openssl-devel

  下载OpenResty

  wget http://openresty.org/download/ngx_openresty-1.5.8.1.tar.gz.

  解压、编译、安装:

  tar xzvf ngx_openresty-1.5.8.1.tar.gz

  cd ngx_openresty-1.5.8.1/

  ./configure --with-luajit

  make

  make install

  另外的配置选项:

  ./configure --prefix=/opt/openresty

  --with-luajit

  --without-http_redis2_module

  --with-http_iconv_module

  --with-http_postgres_module

  -j2

  --help to see more options

来源 电脑技术网 www.sytcke.com
发表留言
发表留言请先登录!
免责声明:本站发布的信息和评论纯属网民个人行为,并不代表本站立场,如发现有违法信息或侵权行为,请直接与本站管理员联系,我们将在收到您的信息后24小时内作出处理!