我正在尝试在 CENTOS 上配置 OTRS,但是结果是 http.service“无法启动”。
这是我正在执行的终端命令和结果输出:
# systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
这是输出systemctl status httpd.service
:
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sáb 2018-02-10 11:23:45 -02; 2min 36s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1634 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 1632 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1632 (code=exited, status=1/FAILURE)
Fev 10 11:23:45 srv-lim-otrs02.ttglog.local systemd[1]: Starting The Apache HTTP Server...
Fev 10 11:23:45 srv-lim-otrs02.ttglog.local systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Fev 10 11:23:45 srv-lim-otrs02.ttglog.local kill[1634]: kill: cannot find process ""
Fev 10 11:23:45 srv-lim-otrs02.ttglog.local systemd[1]: httpd.service: control process exited, code=exited status=1
Fev 10 11:23:45 srv-lim-otrs02.ttglog.local systemd[1]: Failed to start The Apache HTTP Server.
Fev 10 11:23:45 srv-lim-otrs02.ttglog.local systemd[1]: Unit httpd.service entered failed state.
Fev 10 11:23:45 srv-lim-otrs02.ttglog.local systemd[1]: httpd.service failed.
这是输出hostnamectl status
:
Static hostname: srv-lim-otrs02.ttglog.local
Icon name: computer-vm
Chassis: vm
Machine ID: 63206643a78746928a1689f943422fe2
Boot ID: 4260f7fbdda34149b1ec68d5092da71e
Virtualization: microsoft
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-693.17.1.el7.x86_64 Architecture: x86-64
日志文件中出现以下错误(来自上周六):
[Mon Feb 12 10:01:42.618213 2018] [perl:error] [pid 1002] 无法在 @INC 中找到 DateTime.pm (@INC 包含:/opt/otrs/Custom /opt/otrs/Kernel/cpan- lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 ./etc/httpd) 在 /opt/otrs/scripts/apache2-perl-startup.pl 第 72 行。\nBEGIN 失败 - 编译在 /opt/otrs/scripts/apache2-perl-startup.pl 第 72 行中止。\ n(eval 2) 第 1 行的 require 中编译失败。\n
请注意,我已尝试使用cpan> install DateTime
安装此模块;但是,正如您所看到的,错误仍然存在。
我该如何解决这个问题?
答案1
我能够使用以下命令解决:
yum --enablerepo=epel install perl-DateTime-TimeZone*
答案2
此命令: yum --enablerepo=epel install perl-DateTime-TimeZone*
为我返回以下错误:错误:未知的存储库:'epel'