首先给大家分享一个巨牛巨牛的人工智能教程,是我无意中发现的。教程不仅零基础,通俗易懂,而且非常风趣幽默,还时不时有内涵段子,像看小说一样,哈哈~我正在学习中,觉得太牛了,所以分享给大家!点这里可以跳转到教程
1.启动nginx的方式:
cd /usr/local/nginx
ls
./nginx -c nginx.conf
2.查看nginx的进程方式:
[root@localhost nginx]# ps –ef | grep nginx
[root@localhost nginx]# ps -ef | grep nginx
root 21094 1 0 07:52 ? 00:00:00 nginx: master process ./nginx -c nginx.conf
nginx 21095 21094 0 07:52 ? 00:00:00 nginx: worker process
root 21270 3019 1 08:05 pts/1 00:00:00 grep nginx
3.查看Nginx服务主进程的方式:
[root@localhost nginx]# cat nginx.pid
21094
这个进程号和上面的进程号是一样的
4.Nginx服务可接受的信号
信号
作用
TERM或INT
快速停止Nginx服务
QUIT
平缓停止Nginx服务
HUP
使用新的配置文件启动进程,之后平缓停止原有进程,也就是所谓的”平滑重启”
USR1
重新打开日志文件,常用于日志切割,在相关章节中会对此进一步说明
USR2
使用新版本的Nginx文件启