nginx的启动,停止,重启命令(linux)
一、查询是否启动
[root@local]# ps -ef|grep nginx
启动状态root 25235 1 0 19:26 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginxwww 25729 25225 0 19:26 ? 00:00:00 nginx: worker processroot 25647 19431 0 19:30 pts/0 00:00:00 grep nginx
二、启动
[root@local]# /usr/local/nginx/sbin/nginx[root@local]# ps -ef | grep nginx
root 25192 1 0 19:22 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
www 25193 25192 0 19:22 ? 00:00:00 nginx: worker process
root 25195 19431 0 19:22 pts/0 00:00:00 grep nginx
三、停止
从容停止Nginx:
kill -QUIT 主进程号[root@local]# kill -QUIT 25192
[root@local]# ps -ef | grep nginx
root 25190 19431 0 19:22 pts/0 00:00:00 grep nginx
快速停止Nginx:
kill -TERM 主进程号[root@local]# kill -TERM 25192
[root@local]# ps -ef | grep nginx
root 25203 19431 0 19:23 pts/0 00:00:00 grep nginx
强制停止Nginx:
kill -9 主进程号
[root@local]# kill -9 25192
[root@local]# ps -ef | grep nginx
www 25206 1 0 19:24 ? 00:00:00 nginx: worker process
root 25210 19431 0 19:24 pts/0 00:00:00 grep nginx
四、重启
[root@local]# /usr/local/nginx/sbin/nginx -s reload
nginx的启动,停止,重启命令(linux)相关推荐
- crontab服务启动 停止 重启(linux 定时任务)
crontab 服务 启动 停止 重启 crontab 服务用于执行 linux 定时任务. 重启服务命令: service crond restart启动服务命令: service crond st ...
- CentOS7中MySQL启动停止重启命令
1.启动 mysql-5.7.37为mysql的安装目录 systemctl start mysqld.service [xiong@hadoop102 mysql-5.7.37]$ systemct ...
- 服务器MYSQL启动/停止/重启命令
1.查看mysql版本 方法一:status; 方法二:select version(); 2.Mysql启动.停止.重启常用命令 a.启动方式 1.使用 service 启动: [root@loca ...
- linux启动/停止/重启MySQL的命令
linux如何启动/停止/重启MySQL数据库服务?两种方式,一种是使用service启动/停止/重启,另一种则是使用mysqld脚本启动/停止/重启. linux启动MySQL命令 [root@yu ...
- Windows下nginx的启动,重启,停止命令
Windows下nginx的启动,重启,停止命令 打开cmd命令窗口,切换到nginx目录下,输入命令 nginx.exe 或者 start nginx ,回车即可(启动nginx) nginx -s ...
- linux下nginx启动停止重启控制脚本
这是控制nginx服务的脚本文件,包括控制nginx的启动.重启.停止.平滑重启.对配置文件的额检查. [root@localhost ~]# cat nginx.sh #!/bin/env bash ...
- nginx启动停止重启
nginx的启动停止与重启 启动:启动代码格式:nginx安装目录地址 -c nginx配置文件地址 [root@LinuxServer sbin]# /usr/local/nginx/sbin/ng ...
- 各版本VOS服务的停止、启动和重启命令详解
各版本VOS服务的停止.启动和重启命令详解 V2.1.6.00 ~ V2.1.8.05 版本 -服务停止 /etc/init.d/vos3000d stop/etc/init.d/mbx3000d s ...
- linux启动关闭脚本,Linux中启动/停止/重启/状态的startup脚本
今天看到一个脚本,可以完成脚本的启动/停止/重启/状态,和/etc/init.d中的服务一样.但是/etc/init.d里面的服务要设置开机启动,可以使用service来管理.如果不设置开机启动且方便 ...
- nginx:启动、重启、关闭、版本查看、安装目录获取
通过cmd面板或者Xsheel控制面板,输入相应指令,如下表所示: 编号 目的 操作指令 1 利用配置文件启动nginx nginx -c /usr/local/nginx/conf/nginx.co ...
最新文章
- HarmonyOS Text设置换行
- CvArr、Mat、CvMat、IplImage、BYTE转换(总结而来)
- windows下git命令的使用
- iisapp 查看PID所对应的IIS应用程序池及详细介绍
- 孩子数学总是考不好?做好这五点,下次成绩一定好
- php页面文件后缀名,PHP中获取文件扩展名的N种方法
- MyEclipse快捷键两篇文章
- 编译DPDK遇到make: *** /lib/modules/3.10.0-693.el7.x86_64/build: no such file or dirortory
- Atitit mysql insert perf enhance 批量插入数据库性能 目录 1.1. 案一:使用ignore关键字	1 2. 异步插入	2 2.1. 其它关键:DELAYED 做为
- 【MMD tools for bleander,Bleander的插件】
- 解决Substrate节点模板编译失败ailed to run custom build command for `tikv-jemalloc-sys v0.4.3+5.2.1-patched.2`
- 猪猪女孩有多蠢,猫爪杯就有多火
- 计算机网络期末复习知识点
- 为什么曾经优秀的老员工被辞退了?
- PC epub阅读器推荐
- Linux中用VI/VIM编辑器
- installation of package ‘ ‘ had non-zero exit status
- springboot o.a.tomcat.util.scan.StandardJarScanner : Failed to scan [file:/D:/apache-maven-3.0.5
- GPS天线走线类型及注意事项
- rmd 转pdf error: pandoc document conversion failed with error 43