作家
登录

如何在Ubuntu 16.04上安装OTRS(开源问题单系统)

作者: 来源: 2017-06-04 10:21:59 阅读 我要评论

如安在Ubuntu 16.04上安装OTRS(开源问题单体系)

OTRS ,即开源问题单(ticket)申请体系,是一个用于客户办事、赞助台和 IT 办事治理的开源问题单软件。该软件是用 Perl 和 javascript 编写的。对于那些须要治理单子、投诉、支撑请求或其他类型的申报的公司和组织来说,这是一个问题单解决筹划。OTRS 支撑包含 MySQL、PostgreSQL、Oracle 和 SQL Server 在内的多个数据库体系,它是一个可以安装在 Windows 和 Linux 上的多平台软件。

在本教程中,我将介绍如安在 Ubuntu 16.04 上安装和设备 OTRS。我将应用 PostgreSQL 作为 OTRS 的数据库,将 Apache Web 办事器用作 Web 办事器。

先决前提

  • Ubuntu 16.04。
  • 最小 2GB 的内存。
  • root 权限

步调 1 - 安装 Apache 和 PostgreSQL

在第一步中,我们将安装 Apache Web 办事器以及 PostgreSQL。我们将大年夜 ubuntu 仓库中应用最新的版本。

应用 SSH 登录到你的 Ubuntu 办事器中:

  1. ssh root@192.168.33.14 

更新 Ubuntu 仓库。

OTRS Admin Dashboard Without Error Messages

  1. sudo apt-get update 

应用 apt 安装 Apache2 以及 PostgreSQL:

  1. sudo apt-get install -y apache2 libapache2-mod-perl2 postgresql 

经由过程检查办事器端口确保 Apache 以及 PostgreSQL 运行了。

Database Authentication OTRS

  1. netstat -plntu 

Install Apache and PostgreSQL

你可以看到 80 端口被 apache 应用了,5432 端口被 postgresql 数据库应用了。

步调 2 - 安装 Perl 模块

OTRS 基于 Perl,是以我们须要安装一些 OTRS 须要的 Perl 模块。

应用这个 apt 敕令安装 perl 模块:

粘贴下面的设备:

  1. sudo apt-get install -y libapache2-mod-perl2 libdbd-pg-perl libnet-dns-perl libnet-ldap-perl libio-socket-ssl-perl libpdf-api2-perl libsoap-lite-perl libgd-text-perl libgd-graph-perl libapache-dbi-perl libarchive-zip-perl libcrypt-eksblowfish-perl libcrypt-ssleay-perl libencode-hanextra-perl libjson-xs-perl libmail-imapclient-perl libtemplate-perl libtemplate-perl libtext-csv-xs-perl libxml-libxml-perl libxml-libxslt-perl libpdf-api2-simple-perl libyaml-libyaml-perl 
  1. a2enmod perl 
  2. systemctl restart apache2 

接下来,应用下面的敕令检查模块是否已经加载了:

  1. apachectl -M | sort 

Enable Apache Perl Module

Enable Apache Perl Module

你可以在 “Loaded Modules” 部分下看到 perl_module。

步调 3 - 为 OTRS 创建新用户

OTRS 是一个基于 web 的法度榜样并且运行与 apache web 办事器下。为了安然,我们须要以通俗用户运行它,而不是 root 用户。

应用 useradd 敕令创建一个 otrs 新用户:

  1. useradd -r -d /opt/otrs -c 'OTRS User' otrs 
  • -r:将用户作为体系用户。
  • -d /opt/otrs:在 /opt/otrs 下放置新用户的主目次。
  • -c:备注。

接下来,将 otrs 用户参加到 www-data 用户组,因为 apache 运行于 www-data 用户及用户组。

  1. usermod -a -G www-data otrs 

在 /etc/passwd 文件中已经有 otrs 用户了。

撤消注释 60 和 61 行:

  1. grep -rin otrs /etc/passwd 
     1/4    1 2 3 4 下一页 尾页

      推荐阅读

      湖南“互联网+交通”智慧联动保畅通

    每逢节假日,长益高速就会水泄不通,本年“五一”的长益高速与往年不合,路过长益高速的司乘人员都收到了特其余短信——“G5513长沙偏向友仁收费站至长沙西收费>>>详细阅读


    本文标题:如何在Ubuntu 16.04上安装OTRS(开源问题单系统)

    地址:http://www.17bianji.com/lsqh/35545.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)