在Red Hat Enterprise Linux或CentOS系统上安装OTRS
本部分描述了在一台Red Hat Enterprise Linux (RHEL) 或 CentOS 服务器上RPM软件包的安装。
参考官网的安装文档
https://doc.otrs.com/doc/manual/admin/6.0/zh_CN/html/installation.html#installation-on-centos
其中在安装额外的perl模块部分会存在一些变数:
一是shell> yum -y install http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm 获得最新的EPEL软件包会报错,自己在网上找一个可用的就可以
二是执行通过执行位于目录/opt/otrs下的文件bin/otrs.CheckModules.pl来检查缺失的模块时,会发现有些模块版本较低,需要升级,否则sendmail等会有问题,
o DateTime::TimeZone…ok (v1.70)
Please consider updating to version 2.20 or higher: This version includes recent time zone changes for Chile.
o IO::Socket::SSL…ok (v1.94)
Please consider updating to version 2.066 or higher: This version fixes email sending (bug#14357).
o Net::SMTP…ok (v2.31)
Please consider updating to version 3.11 or higher: This version fixes email sending (bug#14357).
升级过程如下,
1、建议使用CPAN
先确保使用Yum安装了cpan
perl -MCPAN -e shell
cpan[1]> upgrade IO::Socket::SSL
cpan[1]> upgrade DateTime::TimeZone
cpan[1]> upgrade Net::SMTP
cpan[1]> install
2、使用源码安装,但是这种方式测试没有通过
以Net::SNMP模块为例
wget http://search.cpan.org/CPAN/authors/id/D/DT/DTOWN/Net-SNMP-v6.0.1.tar.gz
tar -zxvf Net-SNMP-v6.0.1.tar.gz
cd Net-SNMP-v6.0.1
perl Makefile.PL
make && make test
make install