User Tools

Site Tools


redhat_opensrf_trunk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
redhat_opensrf_trunk [2010/03/10 14:41]
leed
redhat_opensrf_trunk [2010/05/04 15:17]
leed
Line 31: Line 31:
 make -f src/​extras/​Makefile.install rhel make -f src/​extras/​Makefile.install rhel
 </​code>​ </​code>​
 +This will install a number of packages required by OpenSRF on your system, including some Perl modules from CPAN. You can say “no” to the initial CPAN configuration prompt to allow it to automatically configure itself to download and install Perl modules from CPAN. The CPAN installer will ask you a number of times whether it should install prerequisite modules - say “yes”.
   - Build OpenSRF:   - Build OpenSRF:
     - As the **opensrf** user, configure and compile OpenSRF. You can include the ''​--enable-python''​ and ''​--enable-java''​ configure options if you want to include support for Python and Java, respectively:<​code bash>     - As the **opensrf** user, configure and compile OpenSRF. You can include the ''​--enable-python''​ and ''​--enable-java''​ configure options if you want to include support for Python and Java, respectively:<​code bash>
Line 118: Line 119:
  
 You might want to add these to start when the machine boots:<​code bash> You might want to add these to start when the machine boots:<​code bash>
-echo /​opt/​ejabberd/​bin/​ejabberdctl start >> /etc/rc.local +useradd -m -s /bin/bash ejabberd 
-chkconfig --level ​345 memcached on</​code>​+chown ejabberd:​ejabberd -R /​opt/​ejabberd 
 +cp /​opt/​ejabberd/​bin/​ejabberd.init /​etc/​init.d/​ejabberd 
 +vi /​etc/​init.d/​ejabberd 
 +</code> 
 +Now add these lines to the top of /etc/init.d/ejabberd immediately below the #​!/​bin/​sh:<​code bash> 
 +# chkconfig: 2345 95 20 
 +# description:​ ejabberd start/stop init script 
 +# Script to start and stop ejabberd 
 +# processname:​ ejabberd 
 +</​code>​ 
 +Now finish adding these programs to autostart:<​code bash> 
 +chkconfig --level 2345 ejabberd on 
 +chkconfig --level ​2345 memcached on</​code>​
  
 Starting OpenSRF with the ''​start_all''​ option starts the OpenSRF router, Perl services, and C services. As the **opensrf** user, start OpenSRF (**NOTE**: use the ''​-l''​ flag only if you wish to force the hostname for the ''<​hosts>''​ section in ''​opensrf.xml''​ to be ''​localhost''​):<​code bash> Starting OpenSRF with the ''​start_all''​ option starts the OpenSRF router, Perl services, and C services. As the **opensrf** user, start OpenSRF (**NOTE**: use the ''​-l''​ flag only if you wish to force the hostname for the ''<​hosts>''​ section in ''​opensrf.xml''​ to be ''​localhost''​):<​code bash>
redhat_opensrf_trunk.txt · Last modified: 2010/08/19 14:09 by leed

© 2008-2017 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a member of Software Freedom Conservancy.