我正在创建一个新的.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控制台中处于停止状态,无法从控制台启动。
请帮帮忙。谢谢你
发布于 2021-08-16 17:32:05
如果从同一ServerRoot运行两个实例,则必须在至少一个配置文件中设置PidFile。例如PidFile logs/logserver.pid
https://stackoverflow.com/questions/68806913
复制相似问题