- psql -U otrs -W -f scripts/database/otrs-schema.postgresql.sql otrs
- psql -U otrs -W -f scripts/database/otrs-initial_insert.postgresql.sql otrs
- psql -U otrs -W -f scripts/database/otrs-schema-post.postgresql.sql otrs
Create new user for OTRS
OTRS 的新用户已经创建了。
步调 4 - 创建和设备数据库
在这节中,我们会为 OTRS 体系创建一个新 PostgreSQL 数据库,并对 PostgreSQL 数据库的设备做一些小的更改。
登录到 postgres 用户并拜访 PostgreSQL shell。
创建一个新的角色 otrs,暗码是 myotrspw,并且长短特权用户。
- create user otrs password 'myotrspw' nosuperuser;
接着应用 otrs 用户权限创建一个新的 otrs 数据库:
- su - otrs
- cd /opt/otrs/
- create database otrs owner otrs;
- \q
你会看到客户登录界面,输入客户的用户名和暗码。
接下来为 otrs 角色验证编辑 PostgreSQL 设备文件。
- vim /etc/postgresql/9.5/main/pg_hba.conf
在 84 行后粘贴下面的设备:
- local otrs otrs password
- host otrs otrs 127.0.0.1/32 password
保存文件并退出 vim
Database Authentication OTRS
应用 exit 回到 root 权限并重启 PostgreSQL:
- exit
- systemctl restart postgresql
PostgreSQL 已经为 OTRS 的安装预备好了。
Configure PostgreSQL for OTRS
步调 5 - 下载和设备 OTRS
在本教程中,我们会应用 OTRS 网站中最新的版本。
进入 /opt 目次并应用 wget 敕令下载 OTRS 5.0:
- cd /opt/
- wget http://ftp.otrs.org/pub/otrs/otrs-5.0.16.tar.gz
展开该 otrs 文件,重定名目次并更改所有 otrs 的文件和目次的所属工资 otrs。
- tar -xzvf otrs-5.0.16.tar.gz
- mv otrs-5.0.16 otrs
- chown -R otrs:otrs otrs
- cd /opt/otrs/
- cp Kernel/Config.pm.dist Kernel/Config.pm
接下来,我们须要检查体系并确保可以安装 OTRS 了。
应用下面的 otrs 脚本敕令检查 OTRS 安装须要的体系软件包:
推荐阅读
每逢节假日,长益高速就会水泄不通,本年“五一”的长益高速与往年不合,路过长益高速的司乘人员都收到了特其余短信——“G5513长沙偏向友仁收费站至长沙西收费>>>详细阅读
本文标题:如何在Ubuntu 16.04上安装OTRS(开源问题单系统)
地址:http://www.17bianji.com/lsqh/35545.html
1/2 1