Elvuel

善战者无赫赫之功

  • Home
  • Atom
  • About Elvuel

ejabberd mod_archive

Posted on December 5th, 2011 - 农历辛卯[兔]年 十一月十一

以下配置在ubuntu下测试通过,使用PGSQL为存储数据库

Install ejabberd

    apt-get install ejabberd

Checkout ejabberd modules

   svn checkout https://svn.process-one.net/ejabberd-modules /usr/local/src/ejabberd-modules

Complie mod_archive

   cd mod_archive/trunk

   ./build.sh

   cp ebin/*.beam /usr/lib/ejabberd/ebin

Compile pgsql

   cd pgsql/trunk

   ./build.sh

   cp ebin/*.beam /usr/lib/ejabberd/ebin

Setting ejabberd

  vim /etc/ejabberd/ejabberd.cfg

  + {odbc_server, {pgsql, "localhost", "database", "username", "password"}}.

  %%%   =======

  %%%   MODULES

  + {mod_archive_odbc,    [

                        {database_type, "pgsql"},

                        {default_auto_save, true},

                        {enforce_default_auto_save, false},

                        {default_expire, infinity},

                        {enforce_min_expire, 0},

                        {enforce_max_expire, infinity},

                        {replication_expire, 31536000},

                        {session_duration, 1800},

                        {wipeout_interval, 86400}

                        ]}

Restart Ejabberd

   /etc/init.d/ejabberd restart

 

Checkout ejabberd log

   /var/log/ejabberd/ejabberd.log  

 

 

 

 

   

 

Tags: ejabberd mod_archive

Posted in Ruby & Rails   |   4 Comments   |  291 views

Comments

4楼

FrazierROBIN   (Feb 7th 2012 at 01:11 AM)

Key point of submission is rss submission. Don't realize where to find it? NO problem, it is not complicated to determine the rss submit service and best rss submission tools as well!

3楼

LongLynda29   (Feb 4th 2012 at 10:36 AM)

Sometimes rss submission service propose automated RSS blog submission. Don't agree with such things! All SEO works must be done manually!

2楼

DORALang25   (Jan 29th 2012 at 10:12 AM)

The really good knowledge like this topic sould be a basis for thesis writing or dissertation writing and be taken at thesis papers.

1楼

McbrideVanessa34   (Jan 20th 2012 at 08:17 PM)

We can offer you the article submit service to do your data like this good topic good enough.

Post your comment


*
*(not shown)
Click,change verify code.


  • Search

  • Categories

    • Ruby & Rails
    • Jobs
    • Uncategorized
  • Recent Posts

    • Prawn使用Annotation坐...
    • ejabberd mod_archive
    • Capybara get session in ...
    • Juggernaut & Rails
    • RottenEgg发布
    • ruby rmagick 生成DM
    • ActiveResource for no r...
    • Rails生成Model文档
    • 转-Method triggers:inst...
    • 招聘-Ruby on Rails软件...
  • Links

    • RailsCasts
    • Alltop Ruby
    • Command Line Refer
    • Ruby Code Snippets
    • GitHub
    • API Dock
    • OpenSourceRails
    • RailsPlugins
    • RailsLab
    • The Ruby Reflector
  • Archives

    • 2012年(1)

    • 2012年01月(1)
    • 2011年(10)

    • 2011年12月(1)
    • 2011年11月(1)
    • 2011年08月(2)
    • 2011年04月(2)
    • 2011年03月(1)
    • 2011年01月(3)
    • 2010年(27)

    • 2010年12月(1)
    • 2010年11月(2)
    • 2010年10月(4)
    • 2010年09月(7)
    • 2010年08月(1)
    • 2010年07月(5)
    • 2010年06月(1)
    • 2010年04月(6)
    • 2009年(13)

    • 2009年10月(1)
    • 2009年05月(2)
    • 2009年04月(1)
    • 2009年03月(2)
    • 2009年02月(7)
    • 2008年(19)

    • 2008年08月(1)
    • 2008年07月(1)
    • 2008年06月(1)
    • 2008年05月(3)
    • 2008年04月(1)
    • 2008年03月(2)
    • 2008年02月(10)

Copyright © 2010 elvuel.com Powered by Elvuel.