nginx

Created

2023-09-12 17:30:16

Updated

2024-10-28 13:20:49

1 查看配置

nginx -V | grep  abc  # 你发现grep 任何东西都会输出...
nginx -V # 实际上这个是错误信息输出到终端
可以看到配置文件的位置
nginx -V 2>&1 |grep nginx.conf
配置相关信息输出重定向到文件
nginx -V 2>&1 1>tmp.txt
Back to top