Centos下安装票单系统OTRS3.3.5
我们先来说下OTRS的简介:OTRS的名字是由Open-source Ticket Request System首字母缩略字而来,是一个开源的缺陷跟踪管理系统软件。OTRS将电话,邮件等各种渠道提交进来的服务请求归类为不同的队列,服务级别,服务人员通过OTRS系统来跟踪和回复客户,相对传统的处理流程来而言,OTRS提供了一个部门或团队的协调环境,以更有效率的方式处理,查询和跟踪。
OTRS是Lisog德国开源非盈利性发展协会创始成中之一。在2010 年被评选为infoworld年度十佳开源网络软件。
今天呢我在centos6.3上面搭建了一下OTRS,可能有人会问怎么好端端的你会突然搭建这个票单系统呢,呵呵其实呢我们公司就是使用的OTRS,一直没有时间来研究它今天我们一起研究和探讨下。今后我会继续发表关于OTRS的相关博文的,请大家继续关注。
下面呢我给大家介绍下环境:
1.CentOS-6.3-x86_64-bin-DVD1.iso
2.mysql-server-5.1.73-3.el6_5.x86_64
3.httpd-2.2.15-29.el6.centos.x86_64
4.otrs-3.3.5-02.noarch.rpm
OTRS的软件包地址:http://ftp.otrs.org/pub/otrs/RPMS/rhel/6/otrs-3.3.5-02.noarch.rpm
以上呢是我的环境以及相关软件包,下面呢我们来进行安装:
1.安装mysql [root@localhost ~]# yum -y install mysql-server [root@localhost ~]# /etc/init.d/mysqld start [root@localhost ~]# mysqladmin -u root password 123 >>为root设置mysql密码 [root@localhost ~]# mysql -u root -p Enter password: >>输入刚才的设置的密码 mysql> create user 'otrs'@'localhost' identified by 'otrs'; >>创建数据库用户otrs mysql> grant all on otrs.* to 'otrs'@'localhost'; >>授权otrs用户 mysql>flush privileges; >>最后刷新下数据库 更改数据库开机自启动 [root@localhost ~]#chkconfig �Clevel 235 mysql on 2.安装apache [root@localhost ~]#yum -y install httpd [root@localhost ~]#service httpd start 更改httpd开机自启动 [root@localhost~]#chkconfig --level 235 httpd on 3.Perl环境安装 [root@localhost~]#yum install perl* 我这里怕有些包没装上所以就全部安装了,300多个包(由于我是新装的系统可能包有点多) 4.OTRS安装 [root@localhost ~]# rpm -ivh otrs-3.3.5-02.noarch.rpm error: Failed dependencies: procmail is needed by otrs-3.2.3-01.noarch 在这里时报错了,还是少装了个包。 [root@localhost ~]# yum -y install procmail 安装完这个之后再安装下otrs [root@localhost ~]# rpm -ivh otrs-3.3.5-02.noarch.rpm ok了,安装OTRS,成功。 5.查看OTRS支持环境安装,看看我们还缺少什么必备条件 [root@localhost ~]# perl /opt/otrs/bin/otrs.CheckModules.pl o Crypt::Eksblowfish::Bcrypt.......Not installed! (optional - For strong password hashing.) o Crypt::SSLeay....................ok (v0.57) o Date::Format.....................ok (v2.22) o DBI..............................ok (v1.609) o DBD::mysql.......................ok (v4.013) o DBD::ODBC........................Not installed! (optional - Required to connect to a MS-SQL database.) o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.) o DBD::Pg..........................ok (v2.15.1) o Encode::HanExtra.................Not installed! (optional - Required to handle mails with several Chinese character sets.) o GD...............................ok (v2.44) o GD::Text.......................ok (v0.86) o GD::Graph......................ok (v1.44) o IO::Socket::SSL..................ok (v1.31) o JSON::XS.........................Not installed! (optional - Recommended for faster AJAX/JavaScript handling.) o List::Util::XS...................ok (v1.21) o LWP::UserAgent...................ok (v6.05) o Mail::IMAPClient.................Not installed! (optional - Required for IMAP TLS connections.) o IO::Socket::SSL................ok (v1.31) o ModPerl::Util....................ok (v2.000004) o Net::DNS.........................ok (v0.65) o Net::LDAP........................ok (v0.40) o Net::SSL.........................ok (v2.84) o PDF::API2........................Not installed! (optional - Required for PDF output.) o Compress::Zlib.................ok (v2.021) o Text::CSV_XS.....................Not installed! (optional - Recommended for faster CSV handling.) o Time::HiRes......................ok (v1.9721) o XML::Parser......................ok (v2.36) o YAML::XS.........................Not installed! (required - Please install this module - ) 其中DBD::ODBC和DBD::Oracle现在用不上,剩下的Encode::HanExtra,JSON::XS,Mail::IMAPClient,PDF::API2,Text::CSV_XS,YAML::XS,在cpan模式下安装即可。 进入cpan模式 [root@localhost ~]#cpan cpan[1]>install Encode::HanExtra /usr/bin/make test -- OK Running make install Prepending /root/.cpan/build/Encode-HanExtra-0.23-3Icncv/blib/arch /root/.cpan/build/Encode-HanExtra-0.23-3Icncv/blib/lib to PERL5LIB for 'install' Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /usr/local/lib64/perl5/auto/Encode/HanExtra/HanExtra.bs Installing /usr/local/lib64/perl5/auto/Encode/HanExtra/HanExtra.so Installing /usr/local/lib64/perl5/Encode/HanExtra.pm Installing /usr/local/lib64/perl5/Encode/TW/Unisys/SOSI2.pm Installing /usr/local/lib64/perl5/Encode/TW/Unisys/SOSI1.pm Installing /usr/local/share/man/man3/Encode::HanExtra.3pm Installing /usr/local/share/man/man3/Encode::TW::Unisys::SOSI1.3pm Installing /usr/local/share/man/man3/Encode::TW::Unisys::SOSI2.3pm Appending installation info to /usr/lib64/perl5/perllocal.pod AUDREYT/Encode-HanExtra-0.23.tar.gz /usr/bin/make install -- OK 过程中还有一大堆英文,看最后的OK就行了 cpan[2]>install JSON::XS 过程中会让确认一下,输入YES确认即可 cpan[3]>install Mail::IMAPClient 过程中会出现测试的确认环节,直接输入N跳过测试就行 Do you want to run the extended tests? (n/y) n cpan[4]>install PDF::API2 等着OK就行了 cpan[5]>install Text::CSV_XS 等着OK就行了 cpan[6]>install YAML::XS 过程中会确认启动进程 ---- Unsatisfied dependencies detected during ---- ---- INGY/YAML-LibYAML-0.41.tar.gz ---- ExtUtils::MakeMaker [build_requires] Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] yes 输入YES确认 M/MS/MSCHWERN/ExtUtils-MakeMaker-6.64.tar.gz is just needed temporarily during building or testing. Do you want to install it permanently? [yes]yes 输入YES确认 cpan[7]>install Crypt::Eksblowfish::Bcrypt 等着OK就行了 再次输入perl /opt/otrs/bin/otrs.CheckModules.pl 确认一下安装结果 [root@localhost ~]# perl /opt/otrs/bin/otrs.CheckModules.pl o Crypt::Eksblowfish::Bcrypt.......ok (v0.009) o Crypt::SSLeay....................ok (v0.57) o Date::Format.....................ok (v2.22) o DBI..............................ok (v1.609) o DBD::mysql.......................ok (v4.013) o DBD::ODBC........................Not installed! (optional - Required to connect to a MS-SQL database.) o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.) o DBD::Pg..........................ok (v2.15.1) o Encode::HanExtra.................ok (v0.23) o GD...............................ok (v2.44) o GD::Text.......................ok (v0.86) o GD::Graph......................ok (v1.44) o IO::Socket::SSL..................ok (v1.31) o JSON::XS.........................ok (v3.01) o List::Util::XS...................ok (v1.21) o LWP::UserAgent...................ok (v6.05) o Mail::IMAPClient.................ok (v3.35) o IO::Socket::SSL................ok (v1.31) o ModPerl::Util....................ok (v2.000004) o Net::DNS.........................ok (v0.65) o Net::LDAP........................ok (v0.40) o Net::SSL.........................ok (v2.84) o PDF::API2........................ok (v2.021) o Compress::Zlib.................ok (v2.021) o Text::CSV_XS.....................ok (v1.05) o Time::HiRes......................ok (v1.9721) o XML::Parser......................ok (v2.36) o YAML::XS.........................ok (v0.41) 除了两个现在用不到的,都安装完成了 6.关闭selinux 修改/etc/selinux/config文件中设置SELINUX=disabled ,然后重启下 7.访问otrs安装页面 客户端浏览器输入http://本机IP/otrs/installer.pl