柳暗花明笔记

    nginx 查找配置文件的方法

    所属分类:[ php&web ] 猫哲学家 发表于:2017-01-03 09:29 浏览:605

    法一:

    ps -o args -C nginx

    lanmiz@lanmiz:~$ ps -o args -C nginx
    COMMAND
    nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx
    nginx: worker process
    nginx: worker process
    nginx: worker process
    nginx: worker process

    法二:

    lanmiz@lanmiz:~$ sudo nginx -t
    nginx: 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 
    上一编文章 vba 添加对数组的重复检验 下一编文章 ubuntu composer 安装
    最近文章
    发表评论