otrs安装mysql_otrs安装配置
本篇基于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~]#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的優化參數
檢查是否還存在perl模塊缺失
[root@localhost ~]# cd /opt/otrs/bin
[root@localhost bin]# ./otrs.CheckModules.pl
[root@localhost bin]# service httpd restart
補全所有perl模塊后,瀏覽器打開otrs的配置頁面進行配置,配置完成后即可使用
初次安裝的地址 otrs/installer.pl (安裝完成后默認情況下是無法再次訪問的)
支持人員登錄地址 otrs/index.pl
用戶門戶登錄地址 otrs/customer.pl
公共FAQ訪問地址(如果有裝FAQ模塊) otrs/public.pl
本文章來自互聯網OTRS
總結
以上是生活随笔為你收集整理的otrs安装mysql_otrs安装配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php querylist,ThinkP
- 下一篇: otrs安装mysql_OTRS安装与配