我已经以根用户身份安装了Apache,并在7773文件中设置了端口httpd.conf

当我尝试启动apachectl时,出现以下错误:

[root@iam-dev bin]# ./apachectl -k start
httpd: Syntax error on line 420 of /home/app/apache-2.2.29/conf/httpd.conf: Syntax error on line 9 of /home/app/apache-2.2.29/conf/webgate.conf: Cannot load /home/app/Middleware/Apache22_WebgateR2PS2_Home/webgate/apache/lib/webgate.so into server: /home/app/Middleware/Apache22_WebgateR2PS2_Home/webgate/apache/lib/webgate.so: undefined symbol: nzos_GetSSLSessionID

最佳答案

您需要设置LD_LIBRARY_PATH env变量指向/ home / app / Middleware / Apache22_WebgateR2PS2_Home / webgate / apache / lib和Apache Home lib目录。喜欢,

export LD_LIBRARY_PATH=/home/app/Middleware/Apache22_WebgateR2PS2_Home/webgate/apache/lib:<Apache Instal Dir>/lib


另外,您可以使用以下命令找出未解决的库。

ldd home/app/Middleware/Apache22_WebgateR2PS2_Home/webgate/apache/lib/webgate.so


HTH,
安尼尔

10-04 19:00