【问题标题】:httpd.conf and logserver.conf cannot work at the same time - they are using the same PID (Linux)httpd.conf 和 logserver.conf 不能同时工作 - 它们使用相同的 PID (Linux)
【发布时间】:2021-10-18 17:54:24
【问题描述】:

我正在创建一个新的 .conf 文件 (LogServer.conf),以便可以通过浏览器访问应用服务器日志。但是每次我启动 httpd.conf 时,LogServer.conf 中的别名都不起作用,反之亦然。他们使用相同的pid。我对这些东西很陌生。你会帮忙吗?谢谢。

这是我的 LogServer.conf

LoadModule mpm_event_module modules/mod_mpm_event.so

Listen sample.ar.sample.com:7777

LoadModule autoindex_module modules/mod_autoindex.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule alias_module modules/mod_alias.so

ServerName sample.ar.sample.com:7777

DocumentRoot "/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs"

Alias /WASLOGS "/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs"
<Directory "/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs">
AllowOverride None
Options +Indexes
IndexOrderDefault Descending Date
</Directory>
<IfModule mod_autoindex.c>
IndexOptions NameWidth=*
</IfModule>

这是我的 httpd.conf 中的 Listen 和 ServerName 值

Listen sample.ar.sample.com:8445
ServerName sample.ar.sample.com:8445

我正在使用以下命令启动它们:

./apachectl -f /opt/IBM/WebSphere/HTTPServer/conf/httpd.conf -k start
./apachectl -f /opt/IBM/WebSphere/HTTPServer/conf/LogServer.conf -k start

如果我先停止再启动LogServer.conf,再启动httpd.conf,我说它已经在特定PID下运行,但在websphere控制台中处于停止状态,无法从控制台启动.

请帮忙。谢谢

【问题讨论】:

    标签: apache websphere httpd.conf mod-alias ibmhttpserver


    【解决方案1】:

    如果您从同一个 ServerRoot 运行两个实例,则必须在至少一个配置文件中设置 PidFile。例如PidFile logs/logserver.pid

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多