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

 

 

 

 

posted on 2014-03-18 19:38  Siylzヾ夏天  阅读(296)  评论(0编辑  收藏  举报