-
默认配置文件的目录是
/etc/nginx/conf.d -
默认nginx的日志文件的目录是
/var/log/nginx -
如果不知道nginx的目录位置 ,想要查看的话,可以通过命令
whereis nginx进行查找,whereis nginx -
查找Nginx配置文件的位置
~]# nginx -t the configuration file /usr/app/nginx/conf/nginx.conf syntax is ok configuration file /usr/app/nginx/conf/nginx.conf test is successful #配置文件中会有配置的引用以及日志位置等配置
nginx常用信息
最新推荐文章于 2025-07-31 10:04:32 发布
本文介绍了Nginx的默认配置文件位置在/etc/nginx/conf.d,日志文件通常存储在/var/log/nginx。若要查找Nginx路径,可以使用whereis命令。通过执行'nginx -t',确认配置文件位于/usr/app/nginx/conf/nginx.conf,并成功进行了语法检查。配置文件内包含了日志路径等关键设置。

1469

被折叠的 条评论
为什么被折叠?



