You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/03/10 15:32:47 UTC
[Couchdb Wiki] Update of "Installing_on_RHEL5" by NilsBreunese
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "Installing_on_RHEL5" page has been changed by NilsBreunese.
http://wiki.apache.org/couchdb/Installing_on_RHEL5?action=diff&rev1=9&rev2=10
--------------------------------------------------
- Installing on RHEL5 x86_64
-
(Note: [[https://issues.apache.org/jira/browse/COUCHDB-315|COUCHDB-315]] has an attached patch for the CouchDB README which adds instructions for RHEL 5.)
- 1. Install prerequisites. You will need [[http://fedoraproject.org/wiki/EPEL|EPEL]] for js and erlang (or build those from source).
+
+
+ Installing a prepackaged CouchDB
+
+ 1. Enable the [[http://fedoraproject.org/wiki/EPEL|EPEL]] repository.
+
+ 2. Install the couchdb package from EPEL:
+
+ # yum install couchdb
+
+ 3. Edit config file to suit:
{{{
- yum install ncurses-devel openssl-devel icu libicu-devel js js-devel curl-devel erlang
+ vi /etc/couchdb/local.ini
}}}
+ 4. Start it:
+ # service couchdb start
+
+ 5. Set it to start automatically:
+
+ # chkconfig --level 345 couchdb on
+
+ Building CouchDB from source
+
+ 1. Install prerequisites. You will need to enable the [[http://fedoraproject.org/wiki/EPEL|EPEL]] repository for the js and erlang packages (or build those from source).
+
+ {{{
+ yum install libicu-devel openssl-devel curl-devel make gcc erlang js-devel
+ }}}
2. Install CouchDB
The configure line below is for 64-bit, adjust for your arch (or leave out --with-erlang if configure can find out for itself). You can use a release tarball instead of a checkout, in that case skip right to the ./confgure line.
@@ -20, +42 @@
./bootstrap
./configure --with-erlang=/usr/lib64/erlang/usr/include && make && make install
}}}
-
3. Edit config file to suit
{{{
vi /usr/local/etc/couchdb/local.ini
}}}
-
4. Create user, modify ownership and permissions
Create the couchdb user:
@@ -34, +54 @@
{{{
adduser -r --home /usr/local/var/lib/couchdb -M --shell /bin/bash --comment "CouchDB Administrator" couchdb
}}}
-
See the README for additional chown and chmod commands to run.
- 5. Launch! In console:
+ 5. Launch!
+
{{{
sudo -u couchdb couchdb
}}}
- or as daemon:
+ Or as daemon:
+
{{{
- sudo /usr/local/etc/rc.d/couchdb start
+ # /usr/local/etc/rc.d/couchdb start
+ }}}
+ 6. Run as daemon on start-up:
+
+ {{{
+ # ln -s /usr/local/etc/rc.d/couchdb /etc/init.d/couchdb
+ # chkconfig --add couchdb
}}}
- 6. Run as daemon on start-up:
- {{{
- sudo ln -s /usr/local/etc/rc.d/couchdb /etc/init.d/couchdb
- sudo chkconfig --add couchdb
- }}}
-