【发布时间】:2021-04-29 16:03:41
【问题描述】:
当我执行以下操作时,我可以正常启动和停止 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
有人建议我获取个人资料,所以我做了以下操作:
- `。 /home/wsadm/.profile
source /home/wsadm/.profile
但是,我在启动 apache 网络服务器实例时仍然遇到同样的错误。
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 的内容将思维过程引向了错误的方向
你能推荐一下吗?
【问题讨论】:
标签: apache shared-libraries httpd.conf profile nosuchfileexception