httpd.conf 和 logserver.conf 不能同时工作 - 它们使用相同的 PID (Linux)

httpd.conf and logserver.conf cannot work at the same time - they are using the same PID (Linux)

我正在创建一个新的 .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 控制台,无法从控制台启动。

请帮忙。谢谢

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