linux蛋疼,配置文件位置滿天飛。搞不清在哪裏。可以按如下方法嘗試:
[root@izuf693wyms6h7ot360phcz /]# find / -name nginx.conf
/etc/nginx/nginx.conf
[root@izuf693wyms6h7ot360phcz /]# /usr/sbin/nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@izuf693wyms6h7ot360phcz /]#
看來一般的默認配置文件在/etc目錄下面的app名稱路徑。