SUSE12.1 继承Hermes邮件plugin

我用的hermes版本为0.7.9

需要安装如下包:

hermes-0.7.9-1.1.x86_64.rpm hermes-herminator-0.7.9-1.1.x86_64.rpm hermes-starship-0.7.9-1.1.x86_64.rpm

hermes-obs-0.7.9-1.1.x86_64.rpm         perl-Class-ISA-0.36-6.1.noarch.rpm

其中hermes-starship-0.7.9-1.1.x86_64.rpm需要用depeds强制安装

下面开始安装配置:

1、拷贝conf/hermes.conf.in 到 /etc/hermes.conf

$DB{ 'default' } = { 'type'     =>  'mysql',
                     'port'     =>  3306,
                     'name'     =>  'hermes',
                     'user'     =>  'root',
                     'pass'     =>  'turbolinux' };


# DEBUG - set to 1 to enable debug. No mail is sent in debug mode.
$Debug = 0;
...


$OBSAPIBase = "http://172.16.70.28:81";
#
# the OBS API credentials
$OBSAPIUser = 'Admin';
$OBSAPIPwd  = 'opensuse';
...


$authentication = "ichaintest-obs";

2、添加好1中文件后检测是否正确:

perl -c /etc/hermes.conf
/etc/hermes.conf syntax OK

3、启动hemes服务

sudo rchermes start

4、将mod_cgi模块添加进lighttp:

编辑文件/etc/lighttpd/modules.conf:

##
## plain old CGI (mod_cgi)
##
include "conf.d/cgi.conf" 

在lighttp.conf文件中添加进

index-file.names += ("index.cgi")

6、添加hermes.conf文件到vhost中,具体请见hermes.conf文件

7、改变config/environments/production.rb中的认证AUTHENTICATION = :off

8、添加或安装hermes数据

$ rm -f db/schema.rb
$ RAILS_ENV=production rake db:migrate

9、用脚本user-hermes添加用户。

重新启动hermes服务


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值