首页 技术 正文
技术 2022年11月14日
0 收藏 454 点赞 4,561 浏览 1846 个字

命令:

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

、、、、、、、、、、、

[root@localhost sbin]# ps -ef|grep nginx
root 23957 1 0 15:30 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nginx 23958 23957 0 15:30 ? 00:00:00 nginx: worker process
root 23961 23878 0 15:30 pts/5 00:00:00 grep nginx

[root@localhost sbin]# pwd
/usr/local/nginx/sbin
[root@localhost sbin]#

关闭:

ps -ef|grep nginx

到nginx的执行程序的目录(sbin-path=/usr/sbin/nginx)即  /usr/sbin

执行一下命令

./nginx -s stop

即可。

、、、、、、、、、

[root@gsidc-4q-saas23 ~]# nginx -V
nginx version: nginx/1.11.6
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-55)
built with OpenSSL 1.0.1u 22 Sep 2016
TLS SNI support enabled
configure arguments: –prefix=/usr/local/nginx –sbin-path=/usr/sbin/nginx –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –pid-path=/var/run/nginx/nginx.pid –lock-path=/var/lock/nginx.lock –user=nginx –group=nginx –with-http_ssl_module –with-http_realip_module –with-http_stub_status_module –with-http_sub_module –with-http_random_index_module –with-http_gzip_static_module –with-http_perl_module –with-stream –with-pcre=pcre-8.38 –with-zlib=zlib-1.2.8 –with-file-aio –http-client-body-temp-path=/var/tmp/nginx/client_body –http-proxy-temp-path=/var/tmp/nginx/proxy –http-fastcgi-temp-path=/var/tmp/nginx/fastcgi –http-uwsgi-temp-path=/var/tmp/nginx/uwsgi –http-scgi-temp-path=/var/tmp/nginx/scgi –with-ld-opt=-Wl,-E –with-openssl=/root/openssl-1.0.1u
[root@gsidc-4q-saas23 ~]# ps -ef|grep nginx
root 9674 8924 0 14:46 pts/4 00:00:00 grep nginx
root 23522 1 0 2017 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
root 23523 23522 0 2017 ? 00:00:03 nginx: worker process
root 23524 23522 0 2017 ? 00:00:05 nginx: worker process
root 23525 23522 0 2017 ? 00:00:06 nginx: worker process
root 23526 23522 0 2017 ? 00:00:18 nginx: worker process
[root@gsidc-4q-saas23 ~]#

[root@gsidc-4q-saas23 sbin]# nginx -s stop

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,031
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,520
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,368
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,148
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,781
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,860