OTRS 4.0 系统安装手册
OTRS 4.0系统安装手册适用OTRS版本:4.0.x
操作系统版本:Centos 6.5
作者:小点
西安点通软件信息技术有限公司
发布日期:2015年2月16日
版本号:V1.0.0
目录
1.概述 (3)
2.搭建环境 (3)
2.1.安装并配置MySQL (3)
2.2.安装并配置Apache (4)
3.安装OTRS (6)
3.1.下载系统包 (6)
3.2.检查所需模块并安装 (6)
3.3.创建OTRS用户 (7)
3.4.激活配置文件 (8)
3.5.检查重要文件 (8)
3.6.配置Apache (8)
3.7.文件授权 (9)
3.8.初始化配置 (9)
4.安装模块 (13)
4.1.下载安装包 (13)
4.2.安装ITSM-4.0.5 (13)
4.3.安装FAQ-4.0.1 (14)
4.4.安装TimeAccounting-4.0.1 (14)
4.5.重启服务 (15)
4.6.安装完成 (15)
1.概述
此文档通过图文方式,详细讲解了如何在Linux系统中搭建环境、安装OTRS和安装系统模块等步骤,演示了OTRS的安装过程。
2.搭建环境
2.1.安装并配置MySQL
在安装OTRS之前需要搭建运行环境,这里需要声明:大部分的操作都是在命令行中。
1)安装的是MySQL数据库。输入以下命令进行安装:
# yum –y install mysql-server
2)添加MySQL开机自启动并启动
# chkconfig --levels 235 mysqld on
# /etc/init.d/mysqld start
3)设置密码
# mysql_secure_installation(按下Enter键,根据提示输入密码)
4)设置远程连接
# mysql -u root –p
# grant all on *.* to 'user'@'%' IDENTIFIED BY 'password';
(User为授权的用户 password 为密码)
# FLUSH PRIVILEGES;
# exit
5)设置Apache连接MySQL
# setsebool httpd_can_network_connect=1 6)设置MySQL允许包的大小
# max_allowed_packet=1048576000
7)重启服务
# service mysqld restart
2.2.安装并配置Apache
1)安装Apache
# yum -y install httpd
2)添加Apache开机自启动并启动
# chkconfig --levels 235 httpd on
# /etc/init.d/httpd start
3)安装gcc、make
# yum install gcc make
4)配置iptables
# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT # /etc/rc.d/init.d/iptables save
# /sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT # /etc/rc.d/init.d/iptables save
5)关闭SELinux
# vi /etc/selinux/config
# SELINUX=disabled
6)重启Apache
# service httpd restart
3.安装OTRS
3.1.下载系统包
运行环境搭建完成后,接下来开始安装OTRS-4.0.5系统。
下载安装包
# cd /opt (切换目录)
# wget ftp://https://www.360docs.net/doc/183246190.html,/pub/otrs/otrs-4.0.5.tar.gz
解压安装包
# tar -xzvf otrs-4.0.5.tar.gz
修改文件名
# mv otrs-4.0.5 otrs
3.2.检查所需模块并安装
1)安装Perl
# yum install perl
2)安装cpan
# yum install cpan
3)检查所需模块
# cd /opt/otrs/bin
# perl /opt/otrs/bin/otrs.CheckModules.pl
4)安装所需模块
# yum install "perl(Archive::Tar)"
# yum install "perl(Archive::Zip)"
# yum install "perl(Crypt::Eksblowfish::Bcrypt)"
# yum install "perl(Crypt::SSLeay)"
# yum install "perl(Date::Format)"
# yum install "perl(Encode::HanExtra)"
# yum install "perl(GD)"
# yum install "perl(GD::Text)"
# yum install "perl(GD::Graph)"
# yum install "perl(IO::Socket::SSL)"
# yum install "perl(ModPerl::Util)"
# yum install "perl(Net::DNS)"
# yum install "perl(Net::LDAP)"
# yum install "perl(PDF::API2)"
# yum install "perl(Template)"
# yum install "perl(Template::Stash::XS)" # yum install "perl(Text::CSV_XS)"
# yum install "perl(Time::HiRes)"
# yum install "perl(Time::Piece)"
# yum install "perl(XML::Parser)"
# yum install "perl(YAML::XS)"
# yum install "perl(DBD::Pg)"
所有所需的模块都已经安装完成了,如下图所示:
3.3.创建OTRS用户
#useradd -d /opt/otrs/ -c 'OTRS user' otrs
3.4.激活配置文件
# cd /opt/otrs/
# cp Kernel/Config.pm.dist Kernel/Config.pm
# cp Kernel/Config/GenericAgent.pm.dist
Kernel/Config/GenericAgent.pm
3.5.检查重要文件
# perl -cw /opt/otrs/bin/cgi-bin/index.pl
# perl -cw /opt/otrs/bin/cgi-bin/customer.pl
# perl -cw /opt/otrs/bin/otrs.PostMaster.pl
3.6.配置Apache
# vi /etc/httpd/conf/httpd.conf
# Include conf.d/*.conf (在这个底下添加下面这段话,/+“搜索的内容“,可以快速定位)
#Include /opt/otrs/scripts/apache2-httpd.include.conf
#User apache (找个这个内容后,将apache修改为otrs)
# service httpd restart
3.7.文件授权
# cd /opt/otrs
# bin/otrs.SetPermissions.pl --web-group=apache 完成后,重启机器
# shutdown –r now
3.8.初始化配置
1)重启完成后,在浏览器中输入以下地址:
http://服务器IP地址/otrs/installer.pl
2)按下图顺序初始化系统配置:
3)修改登录密码
系统自动生成的密码比较复杂,不容易被记住。或者登录密码忘记时,可以通过以下命令修改登录密码:
# cd/opt/otrs/bin
# ./otrs.SetPassword.pl root@localhost 123456
4)登录界面
Agent登录界面,如下图所示:
Customer登录界面,如下图所示:
4.安装模块
最后,安装3个系统模块,有两种方式可以进行安装,它们分别是:在线安装和命令行安装。由于在线安装的速度比较慢,这里演示命令行的操作。
4.1.下载安装包
1)ITSM-4.0.5
#wget
ftp://https://www.360docs.net/doc/183246190.html,/pub/otrs/itsm/bundle4/ITSM-4.0.5.opm
2)FAQ-4.0.1
#wget ftp://https://www.360docs.net/doc/183246190.html,/pub/otrs/packages/FAQ-4.0.1.opm
3)TimeAccounting-4.0.1
#wget
ftp://https://www.360docs.net/doc/183246190.html,/pub/otrs/packages/TimeAccounting-4.0.1 .opm
4.2.安装ITSM-4.0.5
# cd/opt/otrs/bin
# /opt/otrs/bin/otrs.PackageManager.pl -a install -p
/opt/otrs/bin/ITSM-3.3.8.opm
# ./otrs.RebuildConfig.pl
# ./otrs.DeletaCache.pl
# ./otrs.CleanUp.pl
# ./otrs.SetPermissions.pl --web-group=apache
4.3.安装FAQ-4.0.1
#/opt/otrs/bin/otrs.PackageManager.pl -a install -p /opt/otrs/bin/FAQ-4.0.1.opm
# ./otrs.RebuildConfig.pl
# ./otrs.DeletaCache.pl
# ./otrs.CleanUp.pl
# ./otrs.SetPermissions.pl --web-group=apache
4.4.安装TimeAccounting-4.0.1
#/opt/otrs/bin/otrs.PackageManager.pl -a install -p /opt/otrs/bin/FAQ-4.0.1.opm
# ./otrs.RebuildConfig.pl
# ./otrs.DeletaCache.pl
# ./otrs.CleanUp.pl
# ./otrs.SetPermissions.pl --web-group=apache
4.5.重启服务
# service httpd restart
4.6.安装完成
登录到系统后,在导航栏可以看到三个模块都已经安装了。
西安点通软件信息技术有限公司
西安市高新区唐兴路6号唐兴数码大厦321室
029-********
https://www.360docs.net/doc/183246190.html,