1

当我执行以下操作时,我可以启动和停止 apache 实例

$ sudo -u wsadm -I -H
$ cd /web/apps/perf/apache/2.4.41/https-harsh/bin
$ ./apachectl -k start 

但是,当我使用 wsadm 用户直接 ssh 到目标主机并尝试启动实例时,出现以下错误:

$ ./apachectl -k start 

httpd: Syntax error on line 531 of /web/apps/perf/apache/2.4.41/https-harsh/conf/httpd.conf: Cannot load /web/apps/perf/apache/2.4.41/https-harsh/plugin_lib/lib/mod_wl_24.so into server: ld.so.1: httpd: libonssys.so: open failed: No such file or directory

有人建议我获取个人资料,所以我做了以下事情:

  1. `。/home/wsadm/.profile
  2. source /home/wsadm/.profile

但是,我在启动 apache webserver 实例时仍然遇到同样的错误。

cat /home/wsadm/.profile
…..
.….
WLS_PLUGIN_HOME=/web/apps/perf/sjsws/webserver7/wlsplugins/wlsplugin-1.1
LD_LIBRARY_PATH_64=${WLS_PLUGIN_HOME}/lib:${LD_LIBRARY_PATH_64}
export WLS_PLUGIN_HOME LD_LIBRARY_PATH LD_LIBRARY_PATH_64
…..

如您所见,.profile 甚至没有提到任何变量或路径的 apache 文件夹。抱歉,如果我通过提及 .profile 的内容将思维过程引向错误的方向

你能建议吗?

4

1 回答 1

0

它在错误中说:语法错误

httpd: Syntax error on line 531 of /web/apps/perf/apache/2.4.41/https-harsh/conf/httpd.conf: Cannot load /web/apps/perf/apache/2.4.41/https-harsh/plugin_lib/lib/mod_wl_24.so into server: ld.so.1: httpd: libonssys.so: open failed: No such file or directory

这应该回答您的问题:https://www.experts-exchange.com/questions/29088492/Configuration-problem-with-weblogic-connector-module-mod-wl-24-and-apache-2-4-6。 html

于 2021-01-25T20:30:52.713 回答