Ubuntu 11.10 源码安装OTRS3.0.11

1 篇文章 0 订阅

本文将介绍如何在Ubuntu 11.10中如何源码安装OTRS。从http://www.otrs.com/open-source/get-otrs/software-download/下载最新的.tar.gz的源文件包。下载完毕后,我们将开始正式安装。


创建otrs用户

sudo useradd -g www-data -ms /bin/bash otrs

在ubuntu中web的组是www-data

设置密码

sudo passwd otrs

下载otrs所需要具备的包

sudo apt-get install libapache2-mod-perl2 libdbd-mysql-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 libencode-hanextra-perl libjson-xs-perl libtext-csv-xs-perl

解压otrs-3.0.11.tar.gz

sudo tar -zxf otrs-3.0.11.tar.gz -C /opt
cd /opt
sudo mv otrs-3.0.11 otrs

修改配置文件

cd /opt/otrs/Kernel
sudo cp Config.pm.dist Config.pm
sudo cp Config/GenericAgent.pm.dist Config/GenericAgent.pm

检查是否缺少对应的包

cd /opt/otrs/bin
sudo ./otrs.CheckModules.pl
查看是否有没有安装的包,如果没有会现在Not Install,Google或百度就可以找到对应包名,apt-get install就可以了。

所有包都通过后,继续下面的安装。


配置权限

cd /opt/otrs/bin
sudo ./otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=www-data --web-user=www-data --web-group=www-data /opt/otrs

拷贝apache配置文件

sudo cp /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/conf.d/otrs.conf
service apache2 restart

web配置信息与安装数据库

访问http://localhost/otrs/installer.pl,就到看到配置页面了,填写相应的信息,下一步下一步就可以了,第三步配置Email,可以先选择跳过,以后在配置。


配置OTRS计划任务

su otrs
切换OTRS用户

cd /opt/otrs/var/cron
for foo in *.dist; do cp $foo `basename $foo .dist`;done
cd /opt/otrs/bin
./Cron.sh start

配置完成后可以,查看是否配置成功

crontab -l

ScriptFunction
aaa_baseSets the basics for the crontab of the 'otrs' user.
cacheRemoves expired cache entries from disk. Clears the loader cache for CSS and JavaScript files.
fetchmailUsed only if new mails will be fetched with fetchmail into the ticket system.
generic_agentExecutes the jobs of the GenericAgent that are not stored in the database but in own config files.
generic_agent-databaseExecutes the jobs of the GenericAgent that are stored in the database.
pending_jobsChecks system for pending tickets, and closes them or sends reminders if needed.
postmasterChecks the message queue of the ticket system, and delivers messages that are still in the queues.
postmaster_mailboxFetches the mails from the POP3 accounts that were specified in the admin area, in the section for "PostMaster Mail Accounts".
rebuild_ticket_indexRebuilds the ticket index, which improves the speed of the QueueVie
sessionRemoves old and no longer needed session IDs.
unlockUnlocks tickets in the system.


到这里就已经全部安装完成,访问http://localhost/otrs/index.pl,来看看你装的OTRS吧,默认的用户名:root@localhost,密码:root。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值