CentOS7+CDH5.14.0安装CDH错误排查:Hue错误: Load Balancer 该角色的进程启动失败,httpd安装

Hue错误: Load Balancer 该角色的进程启动失败

解决办法:主机可以联网状况下,直接运行以下命令便可在线安装openssl、httpdhtml

须要提早安装环境  httpd, mod_sslc++

yum install httpdapache

yum install mod_sslbash

安装好以后, 重启就行了ui

若是不能联网解决此错误须要离线安装:httpd、openssl、pcre离线安装

离线安装httpd是个比较曲折的过程。spa

安装包准备:.net

httpd安装包下载:code

  各历史版本下载地址:http://httpd.apache.org/download.cgi#apache24 xml

  最新版本下载地址:http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.39.tar.gzhtm

  我下载的是httpd-2.4.26.tar.gz

  另外须要安装文件:

  apr-1.6.2.tar.gz

  apr-util-1.6.0.tar.gz

安装httpd时须要安装高版本的openssl,因此须要下载openssl:

  openssl各版本下载地址:http://distfiles.macports.org/openssl/ 或者 https://ftp.openssl.org/source/ 

  我下载的是 https://ftp.openssl.org/source/openssl-fips-2.0.16.tar.gz

安装httd时须要安装pcre,下载pcre:

  各版本下载地址:https://sourceforge.net/projects/pcre/

  我下载的是:https://sourceforge.net/projects/pcre/files/pcre/8.43/pcre-8.43.tar.gz/download

 安装过程以下:

安装httpd:

解压:

tar xf apr-1.6.2.tar.gz
tar xf apr-util-1.6.0.tar.gz
tar xf httpd-2.4.26.tar.gz

复制:
cp -a apr-util-1.6.0 httpd-2.4.26/srclib/apr-util
cp -a apr-1.6.2 httpd-2.4.26/srclib/apr
cd httpd-2.4.26

配置及环境检查命令:

./configure --prefix=/data/httpd24 \
--enable-so \
--enable-ssl \
--enable-cgi \
--enable-rewrite \
--with-zlib \
--with-pcre \
--with-included-apr \
--enable-modules=most \
--enable-mpms-shared=all \
--with-mpm=prefork

检查以后报错:

checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

安装pcre:

执行以下命令:

tar -zxvf pcre-8.43.tar.gz

cd  pcre-8.43

./configure --prefix=/usr/local/pcre

make

make install

(注:若是configure报错:no acceptable C compiler found in $PATH,则须要安装gcc,

若是configure报错:ivalid c++ compiler or c++ compiler flags,则是安装gcc时  gcc-c++没安装,安装上便可

详情查看离线安装gcc连接:https://www.cnblogs.com/qqflying/p/10916564.html 

configure不成功后面的make,make install是成功不了的,会报错:make: *** 没有指明目标而且找不到 makefile。 中止。

)

而后从新进入

cd httpd-2.4.26

configure时,把pcre路径加上

以下:

 ./configure --prefix=/data/httpd24  --enable-so  --enable-ssl   --enable-cgi  --enable-rewrite  --with-zlib  --with-pcre=/usr/local/pcre   --with-included-apr  --enable-modules=most  --enable-mpms-shared=all  --with-mpm=prefork

执行以后报错:

checking for OpenSSL version >= 0.9.7… FAILED 
configure: WARNING: OpenSSL version is too old 
no 
checking whether to enable mod_ssl… configure: error: mod_ssl has been requested but can not be built due to prerequisite failures

这是自带的OpenSSL版本过低,须要安装新版本

执行以下命令:

tar -zxvf openssl-fips-2.0.16.tar.gz

cd  openssl-fips-2.0.16

./config shared zlib --prefix=/usr/local/openssl && make && make install

查看openssl版本:

[root@cdh1 ~]# openssl version
OpenSSL 1.0.2k-fips 26 Jan 2017

查看openssl安装路径

[root@cdh1 ~]# whereis openssl
openssl: /usr/bin/openssl /usr/lib64/openssl /usr/local/openssl /usr/share/man/man1/openssl

(如下步骤不仅是否必须,仅供参考:

安装结束后执行如下命令

./config -t
make depend

进入/usr/local目录下,执行如下命令

ln -s openssl ssl

在/etc/ld.so.conf文件的最后面,添加以下内容:/usr/local/openssl/lib
而后执行如下命令

ldconfig

添加OPESSL的环境变量,在etc/的profile的最后一行,添加:

export OPENSSL=/usr/local/openssl/bin
export PATH=$OPENSSL:$PATH:$HOME/bin

退出命令界面,再重新登陆,使配置生效。

原文:https://blog.csdn.net/shiyong1949/article/details/78212971

 

而后从新进入

cd httpd-2.4.26

configure时,把openssl的路径加上

以下:

 ./configure --prefix=/data/httpd24  --enable-so  --enable-ssl --with-ssl=/usr/local/openssl  --enable-cgi  --enable-rewrite  --with-zlib  --with-pcre=/usr/local/pcre   --with-included-apr  --enable-modules=most  --enable-mpms-shared=all  --with-mpm=prefork

配置检测成功,而后执行

make

make install

安装完成。

重启Hue组件,变绿了,错误解除。

(注:若是make过程出现错误:xml/apr_xml.c:35:19: 致命错误:expat.h:没有那个文件或目录,则是由于没有安装expat开发库,请查看gcc离线安装那篇文章)

相关文章
相关标签/搜索