简体   繁体   English

尝试在运行 WHM 和 CloudLinux 的 CentOS 7 服务器上安装 OpenCPU

[英]Trying to install OpenCPU on CentOS 7 server running WHM & CloudLinux

I'm trying to run OpenCPU on a CentOS 7 dedicated server that is already running WHM and CloudLinux.我正在尝试在已经运行 WHM 和 CloudLinux 的 CentOS 7 专用服务器上运行 OpenCPU。

The first step was to install dependencies:第一步是安装依赖项:

yum install rpm-build make wget tar httpd-devel libapreq2-devel R-devel libcurl-devel protobuf-devel openssl-devel libxml2-devel libicu-devel libssh2-devel

One of the requirements of OpenCPU installation is "libapreq2-devel" which depends on "httpd-mmn": OpenCPU 安装的要求之一是依赖于“httpd-mmn”的“libapreq2-devel”:

Error: Package: libapreq2-2.13-13.el7.x86_64 (epel)
           **Requires: httpd-mmn = 20120211x8664**
Error: Package: libapreq2-devel-2.13-13.el7.x86_64 (epel)
           **Requires: httpd-devel >= 2.0.48**

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

After I removed temporarily "httpd*" from the exclude list of yum configuration file (etc/yum.conf) and tried the command above again, I got this new error:在我从 yum 配置文件(etc/yum.conf)的排除列表中暂时删除“httpd*”并再次尝试上面的命令后,我得到了这个新错误:

Error: **ea-apache24 conflicts with httpd-2.4.6-90.el7.cloudlinux.x86_64**

Error: Package: libapreq2-devel-2.13-13.el7.x86_64 (epel)
           **Requires: httpd-devel >= 2.0.48**
           Available: httpd-devel-2.4.6-18.el7_0.cloudlinux.x86_64 (cloudlinux-x86_64-server-7)

httpd-devel = 2.4.6-18.el7_0.cloudlinux
           Available: httpd-devel-2.4.6-30.el7.cloudlinux.x86_64 (cloudlinux-x86_64-server-7)

httpd-devel = 2.4.6-30.el7.cloudlinux
           Available: httpd-devel-2.4.6-31.el7.cloudlinux.x86_64 

...

...

(cloudlinux-x86_64-server-7)
               httpd-devel = 2.4.6-90.el7.cloudlinux

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

Before digging deeper, anyone tried to do the same and run OpenCPU alongside WHM installation?在深入挖掘之前,是否有人尝试做同样的事情并在 WHM 安装的同时运行 OpenCPU? And would that be a reliable solution to run on a production environment?这会是在生产环境中运行的可靠解决方案吗?

I'm not sure what you did, but maybe you can see how the centos 7 docker image does it:我不确定你做了什么,但也许你可以看到centos 7 docker 图像是如何做到的:

docker run -it opencpu/centos-7

If you install the opencpu-server precompiled binaries you don't need these -devel packages.如果您安装 opencpu-server预编译的二进制文件,则不需要这些-devel包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM