标签:kill start system oss ext src status cto pms
安装过程#获取nginx的yum源,从官方获取到的
#>rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
#安装nginx
#> yum install -y nginx
#检查nginx服务状态
#> systemctl status nginx
#> ps -axu|grep nginx
[root@ckmike /]# ps -axu|grep nginx
root 7719 0.0 0.0 46344 976 ? Ss 05:13 0:00 nginx: master process nginx
nginx 7720 0.0 0.1 46752 1940 ? S 05:13 0:00 nginx: worker process
root 7725 0.0 0.0 112708 976 pts/0 R+ 05:14 0:00 grep --color=auto nginx
[root@ckmike /]#
#启动服务
#> nginx
#>systemctl start nginx
#重启服务
#>nginx -s reload
#>systemctl restart nginx
#检查配置是否有问题
#>nginx -t
#关闭ngixn服务
#>systemctl stop nginx
#>nginx -s stop
#> kill -s [pid]
更多命令请进入官网学习。
标签:kill start system oss ext src status cto pms
原文地址:https://blog.51cto.com/4837471/2386214