Centos6.9部署ORTS5.0.22
1.安裝數(shù)據(jù)庫(kù)
為了使用默認(rèn)InnoDB引擎,Centos6.9上默認(rèn)yum安裝mysql5.1.73版本的,orts在初始化數(shù)據(jù)庫(kù)時(shí)要求log大小要大于250M以上,因此干凈安裝Centos后,先安裝MariaDB5.5版本。
1)在/etc/yum.repos.d/目錄創(chuàng)建MariaDB.repo文件,內(nèi)容如下:
# MariaDB 5.5 CentOS repository list - created 2014-03-04 11:20 UTC # http://mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=12)在Shell環(huán)境下執(zhí)行命令
# yum install MariaDB-server MariaDB-client3)啟動(dòng)MariaDB
/etc/init.d/mysql start Starting MySQL.170914 16:06:17 mysqld_safe Logging to '/var/lib/mysql/BlueTek-testapp-OTRS-01-WEB.err'. 170914 16:06:17 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql . SUCCESS!4)設(shè)置密碼
/usr/bin/mysqladmin -uroot password 'glpuser1!'5)設(shè)置相關(guān)權(quán)限
MySQL [(none)]> use mysql; MySQL [mysql]> update user set host='%' where user='root' and host='127.0.0.1'; MySQL [mysql]> grant all privileges on *.* to 'root'@'%' identified by 'adminadmin' with grant option; MySQL [mysql]> flush privileges;6)安全相關(guān)(實(shí)際上是關(guān)閉了)
# vi /etc/sysconfig/iptables #iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT # service iptables restart關(guān)閉防火墻:
# service iptables stop# sed?-i?'s/SELINUX=enforcing/SELINUX=disabled/'?/etc/selinux/config # chkconfig --del ip6tables # chkconfig --del iptables
關(guān)閉Selinux:
# setenforce 0 setenforce: SELinux is disabled # getenforce Disabled7)設(shè)置MariaDB:
使用文本編輯器來(lái)創(chuàng)建一個(gè)新文件/etc/my.cnf.d/zotrs.cnf,包含如下內(nèi)容:
[mysqld] max_allowed_packet = 20M query_cache_size = 32M innodb_log_file_size = 256M注:改了innodb_log_file_size參后,啟動(dòng)下面報(bào)錯(cuò),然來(lái)是改了這個(gè)參數(shù)后需要關(guān)閉MYSQLSQL并刪除ib_logfile0, ib_logfile1這些文件,再啟動(dòng)MYSQL,否則無(wú)法啟動(dòng),為此折騰了一會(huì)。
2、安裝otrs
1)先下載安裝包
wget http://ftp.otrs.org/pub/otrs//RPMS/rhel/6/otrs-5.0.22-01.noarch.rpm2)使用yum通過(guò)命令行來(lái)安裝OTRS,它還會(huì)拉入一些依賴包如Apache WEB服務(wù)器和一些Perl模塊。確保你已經(jīng)將OTRS RPM文件復(fù)制到了當(dāng)前目錄。
shell> yum install --nogpgcheck otrs-x.x.*.rpm ... Dependencies Resolved================================================================================Package Arch Version Repository Size ================================================================================ Installing:otrs noarch x.x.x-01 /otrs-x.x.x-01.noarch74 M Installing for dependencies:apr x86_64 1.3.9-5.el6_2 updates 123 k...procmail x86_64 3.22-25.1.el6 base 163 kTransaction Summary ================================================================================ Install 26 Package(s)Total size: 80 M Total download size: 6.0 M Installed size: 88 M Downloading Packages: (1/25): apr-1.3.9-5.el6_2.x86_64.rpm | 123 kB 00:00 ... (25/25): procmail-3.22-25.1.el6.x86_64.rpm | 163 kB 00:00 -------------------------------------------------------------------------------- Total 887 kB/s | 6.0 MB 00:06 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running TransactionInstalling : apr-1.3.9-5.el6_2.x86_64 1/26...Installing : otrs-x.x.x-01.noarch 26/26 Check OTRS user ... otrs added....shell>3)啟動(dòng)apache
# service httpd start4)安裝額外的perl模塊
除了通過(guò)RPM包安裝的Perl模塊外,OTRS還需要一些其它的Perl模塊,你可以手動(dòng)安裝。通過(guò)執(zhí)行位于目錄/opt/otrs下的文件bin/otrs.CheckModules.pl來(lái)檢查缺失的模塊。一些模塊只是可選的功能才需要,比如與IMAP服務(wù)器通訊或生成PDF。在RedHat或CentOS上我們推薦從EPEL軟件倉(cāng)庫(kù)安裝這些模塊,EPEL是由Fedora項(xiàng)目維護(hù)的一個(gè)軟件倉(cāng)庫(kù),為RHEL及其分支提供高質(zhì)量的軟件包。可在EPEL網(wǎng)站上查看更多信息。
如果你使用的是RHEL 7或CentOS 7,你可以從這個(gè)網(wǎng)址獲得最新的EPEL軟件包。你可以執(zhí)行下面的命令添加EPEL軟件倉(cāng)庫(kù)到y(tǒng)um源:
shell> yum -y install http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm...Installed:epel-release.noarch 0:7-8Complete!添加這個(gè)軟件倉(cāng)庫(kù)后首次使用yum,會(huì)提示你要添加它的密鑰。現(xiàn)在你可以像下面這樣安裝缺失的模塊了。
shell> yum -y install "perl(Text::CSV_XS)"...Installed:perl-Text-CSV_XS.x86_64 0:0.85-1.el6Complete! shell>下一步是使用WEB安裝器來(lái)配置OTRS,其過(guò)程本章另有描述。
在安裝完OTRS軟件后,你可以使用OTRS的WEB安裝器來(lái)設(shè)置和配置OTRS數(shù)據(jù)庫(kù)。WEB安裝器是一個(gè)能通過(guò)瀏覽器訪問(wèn)的WEB頁(yè)面。WEB安裝器的地址是:?http://localhost/otrs/installer.pl?
現(xiàn)在你可以啟動(dòng)OTRS守護(hù)進(jìn)程并激活相應(yīng)的監(jiān)控此進(jìn)程的cron任務(wù)(必須以otrs用戶執(zhí)行):
shell> /opt/otrs/bin/otrs.Daemon.pl start shell> /opt/otrs/bin/Cron.sh start就這樣了,恭喜搞定!
參考文章:
http://doc.otrs.com/doc/manual/admin/stable/zh_CN/html/installation.html#installation-on-centos
https://blog.mulinux.com/ops/108.html
轉(zhuǎn)載于:https://www.cnblogs.com/ld1977/p/7523658.html
總結(jié)
以上是生活随笔為你收集整理的Centos6.9部署ORTS5.0.22的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: oracle pl/sql 函数
- 下一篇: ngnix入门配置