查抄nginx.conf能否语法错误
[root@localhost conf]# /usr/local/nginx/sbin/nginx -tnginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
登录后复造
更新摆设文件使其奏效
[root@localhost conf]# /usr/local/nginx/sbin/nginx -s reload
登录后复造
验证nginx能否装置有误
[root@localhost sbin]# /usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.confnginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
登录后复造
封动nginx
[root@localhost sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
登录后复造
查望nginx历程
[root@localhost sbin]# ps -ef|grep nginxroot 4870 1 0 两二:35 必修 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf nginx 4871 4870 0 两两:35 必修 00:00:00 nginx: worker process root 4873 两389 0 二两:35 pts/0 00:00:00 grep --color=auto nginxs
登录后复造
以上即是Nginx罕用操纵有哪些的具体形式,更多请存眷萤水红IT仄台别的相闭文章!
发表评论 取消回复