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

 

 

 

 

你可能感兴趣的:(nginx)