在Linux下安装OTRS系统

来自YTYZX有图有真相的百科
Ytyzx讨论 | 贡献2017年6月30日 (五) 18:02的版本
跳转至: 导航搜索

OTRS的名字是由Open-source Ticket Request System首字母缩略字而来,是一个开源的缺陷跟踪管理系统软件。可将之理解为工单提交跟踪系统。详情请点击维基百科。本例中以最小化(minimal)安装的CentOS 7为例说明安装步骤。

1.安装完毕后,确保网络正常,建议输入“yum upgrade”进行更新。
2.更新完毕后输入“vi /etc/selinux/config”并按回车键。

OTRS1.png

3.配置文件里默认为“SELINUX=enforcing”。

OTRS2.png

4.按“i”键进入编辑状态,并修改为“SELINUX=disabled”,确认无误后按ESC键,并输入“:x”保存退出。

OTRS3.png

5.输入“reboot”重启。

OTRS4.png

6.重启后登录输入“getenforce”确认是否为Disabled状态。

OTRS5.png

7.输入“yum -y install mariadb-server”开始安装数据库。
   注意:CentOS7默认数据库为MariaDB,亦可自行安装MySQL如何在CentOS7中安装MySQL

OTRS6.png

8.提示已经安装完毕。
   注意:暂时请勿启动数据库,设置好配置文件后再启动,以防发生错误。

OTRS7.png

9.输入“vi /etc/my.cnf.d/zotrs.cnf”新建一个配置文件。

OTRS8.png

10.按“i”键进入编辑状态,并添加以下内容,确认无误后按ESC键,并输入“:x”保存退出。
     文件内容:   [mysqld]
                         max_allowed_packet   = 20M
                         query_cache_size     = 32M
                         innodb_log_file_size = 256M

OTRS9.png

11.输入“systemctl start mariadb”启动MariaDB数据库服务。

OTRS10.png

12.输入“mysql_secure_installation”对数据库进行安全配置。
     详细设置请点击如何提高全新安装MySQL的安全性

OTRS11.png

13.输入“systemctl enable mariadb”设置MariaDB数据库服务为开机自动启动。

OTRS12.png

14.输入“yum -y install httpd”安装Apache网页服务器软件。

OTRS13.png

15.提示已经安装完毕。

OTRS14.png

16.输入“systemctl start httpd”启动Apache。

OTRS15.png

17.输入“firewall-cmd --zone=public --add-port=80/tcp --permanent”将80端口开放。

OTRS16.png

18.输入“firewall-cmd --reload”使规则生效。

OTRS17.png

19.输入“iptables-save | grep 80”查看是否生效。

OTRS18.png

20.输入“ip addr”查看本机IP地址,本例中为192.168.1.102。

OTRS19.png

21.在浏览器里输入“192.168.1.102”(本机IP地址),如出现类似“Testing 123...”画面则表示设置成功。

OTRS20.png

22.输入“systemctl enable httpd”设置Apache网页服务为开机自动启动。

OTRS21.png

23.输入“https://www.otrs.com/download-open-source-help-desk-software-otrs-free”查看OTRS软件下载地址。

OTRS22.png

24.建议下载到/tmp目录,输入“cd /tmp/”进入目录。

OTRS23.png

25.输入“wget http://ftp.otrs.org/pub/otrs/RPMS/rhel/6/otrs-5.0.20-01.noarch.rpm”尝试下载,提示command not found(无法找到命令)。

OTRS24.png

26.输入“yum -y install wget”安装wget。

OTRS25.png

27.提示已经安装成功。

OTRS26.png

28.再次输入“wget http://ftp.otrs.org/pub/otrs/RPMS/rhel/6/otrs-5.0.20-01.noarch.rpm”开始下载OTRS软件。
     注意:实际使用中请以有效地址为准。

OTRS27.png

29.下载完毕后可输入“ls”查看,文件名为otrs-5.0.20-01.noarch.rpm。

OTRS28.png