ubuntu系统openresty的安装,ubuntu系统openresty


//ubuntu系统openresty的安装


//安装依赖
//apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make libssl-dev


//基本的安装如下:
//tar xzvf ngx_openresty-VERSION.tar.gz
//cd ngx_openresty-VERSION/
//./configure
//make
//make install


//在./configure的时候可以加一些参数.
//使用./configure --help命令查看可用选项.
//所有nginx编译时使用的参数都可以在这里使用.
// --prefix=/usr/local/services/openresty 安装位置
// --with-pcre-jit  支持正则表达式
// --with-ipv6 支持ipv6
// --with-luajit    使用luajit.
// --with-http_iconv_module 
// --with-http_ssl_module  支持https
// ....


//nginx 启动  -p指定工作目录 -c指定配置文件
//  /usr/local/services/openresty/nginx/sbin/nginx -p /data/nginx-work/ -c conf/nginx.conf


//快速停止服务, 同时指定一下启动时设置的工作目录,好找到pid文件
//  /usr/local/services/openresty/nginx/sbin/nginx -s stop -p /data/nginx-work/


//重载配置文件
// /usr/local/services/openresty/nginx/sbin/nginx -s reload -p /data/nginx-work/

相关内容

    暂无相关文章