apache - 如何打印所有活动的 httpd 配置参数?
问题描述
例如,我用命令启动 apache
$ docker run -d --name a2 httpd httpd -X -DFOREGROUND -DFOO -DBAR
如何打印所有传递的配置参数-D
?
预期输出为
FOREGROUND
FOO
BAR
我试着看apachectl
,按照DUMP_
命令
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-t -D DUMP_MODULES : show all loaded modules
-t -D DUMP_INCLUDES: show all included configuration files
但是没有一个命令可以做到这一点
解决方案
推荐阅读
- linux - 在 linux bash 中删除文件的简单脚本
- php - 将子查询结果集限制为最后一条记录
- kubernetes - kubectl 运行命令中记录选项的用途是什么?
- haskell - Haskell DeriveGeneric pragma 未被识别
- oracle - ORA-04091: 表 JOSEP.EMP 正在变异,触发器/函数可能看不到它
- excel - 显示按钮被选择次数的逻辑
- java - 递归填充二叉搜索树的高度?
- haskell - 在 GHC 中-为什么这个小程序的惰性版本比基于循环的变体快得多?
- scala - 如何解决 Eclipse 2019 中的 Scala 错误?
- reactjs - 使用 ReactJS Fullpage 如何使用图像的 onclick 转到部分