本篇基于CentOs 6.x环境,收录必要的安装过程
- 更新补丁包 yum -y update
- 关闭 selinux 接着重启服务器
[root@localhost~]vim /etc/selinux/config 修改SELINUX=disabled [root@localhost~]reboot
- 安装EPEL扩展和一些perl模块
[root@localhost~]#yum -y install epel-release [root@localhost~]#yum -y update //不一定需要操作 [root@localhost~]#yum -y install sendmail setuptool httpd mysql-server mysql mod_perl perl-Net-DNS \ perl-XML-Parser perl-DateTime perl-TimeDate perl-IO-Socket-SSL perl-DateTime-Format-Builder perl-Apache-DBI
[root@localhost~]#yum -y install perl perl-Crypt-SSLeay perl-Digest-SHA perl-Net-LDAP procmail \ perl-core perl-LDAP perl-Encode-HanExtra perl-GD perl-JSON-XS perl-Mail-IMAPClient perl-PDF-API2 perl-PDF-API2-Text-CSV_XS
[root@localhost~]#yum -y install perl-YAML-XS perl-YAML gcc gcc-c++ perl-Archive-Zip perl-Template-Toolkit [root@localhost~]#yum -y install system-config-firewall-base system-config-date system-config-firewall \ system-config-firewall-tui system-config-network-tui system-config-services system-config-services-docs
[root@localhost~]#yum -y install mlocate perl-CPAN perl-Crypt-Eksblowfish perl-GD-Text perl-GDGraph \ perl-GDTextUtil perl-Text-CSV-Separator perl-Text-CSV_XS perl-YAML perl-YAML-LibYAML perl-XML-LibXSLT
- 重要服务设置为开机启动并启动相关服务
[root@localhost~]#chkconfig --level 235 mysqld on [root@localhost~]#chkconfig --level 235 httpd on [root@localhost~]#chkconfig --level 235 ntpd on [root@localhost~]#service httpd start [root@localhost~]#service ntpd start
- 关闭防火墙(建议在线上环境,根据实际的安全需求配置防火墙)
[root@localhost~]#service iptables stop
或
[root@localhost~]#/etc/init.d/iptables stop
- 配置MySQL
为达到OTRS对MySQL配置要求,需要对my.cnf添加两行参数 设置MySQL允许包的大小,添加到[mysqld]下
[root@localhost~]#vim /etc/my.cnf max_allowed_packet=20M innodb_log_file_size=512M [root@localhost~]#service mysqld start
配置帐号和密码
[root@localhost ~]# mysql -uroot -p mysql> create user 'otrs'@'localhost' identified by 'otrs'; mysql> grant all on otrs.* to 'otrs'@'localhost'; mysql>flush privileges; [root@localhost ~]#service mysqld restart
- 安装OTRS(以下为3.x版本为例,其它版本至5.x同方式操作)
[root@localhost~]#wget http://ftp.otrs.org/pub/otrs/RPMS/rhel/6/otrs-3.3.8-01.noarch.rpm
[root@localhost~]#rpm -ivh otrs-3.3.8-01.noarch.rpm Preparing... ########################################### [100%] Check OTRS user ... otrs added. 1:otrs ########################################### [100%] Next steps: [httpd services] Restart httpd 'service httpd restart' [install the OTRS database] Make sure your database server is running. Use a web browser and open this link: http://localhost/otrs/installer.pl [OTRS services] Start OTRS 'service otrs start' (service otrs {start|stop|status|restart). ((enjoy)) Your OTRS Team
- 配置MySQL的优化参数
https://ask.otrs.org.cn/question/29
- 检查是否还存在perl模块缺失
[root@localhost ~]# cd /opt/otrs/bin [root@localhost bin]# ./otrs.CheckModules.pl [root@localhost bin]# service httpd restart
- 补全所有perl模块后,浏览器打开otrs的配置页面进行配置,配置完成后即可使用
http://OTRS服务器IP地址/otrs/installer.pl
- 初次安装的地址 otrs/installer.pl (安装完成后默认情况下是无法再次访问的)
- 支持人员登录地址 otrs/index.pl
- 用户门户登录地址 otrs/customer.pl
- 公共FAQ访问地址(如果有装FAQ模块) otrs/public.pl
本文章来自互联网
OTRS
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30345407/viewspace-2099343/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30345407/viewspace-2099343/