nginx+lua项目学习

1、启动nginx命令

/usr/local/ngx_openresty/nginx/sbin/nginx -p /usr/local/ngx_openresty/nginx/ -c /usr/local/ngx_openresty/nginx/conf/vvideo_lua/PS_conf/ps_nginx.conf

/usr/local/ngx_openresty/nginx/sbin/nginx -p /usr/local/ngx_openresty/nginx/ -c /usr/local/ngx_openresty/nginx/conf/vvideo_lua/BS_conf/bs_nginx.conf

/usr/local/ngx_openresty/nginx/sbin/nginx -p /usr/local/ngx_openresty/nginx/ -c /usr/local/ngx_openresty/nginx/conf/vvideo_lua/PS_conf/ps_nginx.conf -s reload

 

 

 

2、关闭nginx命令

 

 

3、查询nginx主进程号

ps -ef | grep nginx

在进程列表里 面找master进程,它的编号就是主进程号了。

 

 ./configure --prefix=/usr/local/openresty --with-luajit --without-http_redis2_module --with-http_iconv_module --with-http_postgres_module             -j2 --with-pcre=/home/work/software/pcre-8.32/

/usr/local/openresty/nginx/sbin/nginx -p /usr/local/openresty/nginx/ -c /usr/local/openresty/nginx/conf/nginx.conf

 curl --get --data "param=test" --url "192.168.217.131:9003/test_url" 

 curl --url "192.168.217.131:9003/test_url?a=1&b=2&c=3"   

 

 /usr/local/openresty/nginx/sbin/nginx -p /usr/local/openresty/nginx/ -c /usr/local/openresty/nginx/conf/nginx.conf

 

 

 

 

转载于:https://www.cnblogs.com/xiatian1071/p/3608559.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值