From 6ad8375807b9a49ebd056f3f8973f1d67fe47f4a Mon Sep 17 00:00:00 2001 From: Robert Soulliere Date: Thu, 30 Sep 2010 12:38:55 -0400 Subject: [PATCH] Clean up formatting. --- 1.6/admin/AdminMisc.xml | 80 ++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 46 deletions(-) diff --git a/1.6/admin/AdminMisc.xml b/1.6/admin/AdminMisc.xml index 6430e72ee5..50f6dff883 100644 --- a/1.6/admin/AdminMisc.xml +++ b/1.6/admin/AdminMisc.xml @@ -214,63 +214,51 @@ size 50M Install the application stow on your system if it is not already installed. Issue the following command as the root user: - - Installing <application>stow</application> - - $ apt-get install stow - ... - + +apt-get install stow + Download, compile, and install the latest release for PostgreSQL 8.2 (which was version 8.2.12 at the time of this writing). As the root user, follow these steps: -
- Installing PostgreSQL - - $ wget http://wwwmaster.postgresql.org/redir/198/h/source/v8.2.17/postgresql-8.2.17.tar.bz2 - $ tar xzf postgresql-8.2.17.tar.gz - $ cd postgresql-8.2.17 - $ ./configure --with-perl --enable-integer-datetimes --with-openssl --prefix=/usr/local/stow/pgsql - ... - $ make - ... - $ make install - ... - $ cd contrib - $ make - ... - $ make install - $ cd xml2 - $ make - ... - $ make install - $ cd /usr/local/stow - $ stow pgsql - -
+ + + +wget http://wwwmaster.postgresql.org/redir/198/h/source/v8.2.17/postgresql-8.2.17.tar.bz2 +tar xzf postgresql-8.2.17.tar.gz +cd postgresql-8.2.17 +./configure --with-perl --enable-integer-datetimes --with-openssl --prefix=/usr/local/stow/pgsql +make +make install +cd contrib +make +make install +cd xml2 +make +make install +cd /usr/local/stow +stow pgsql + + +
Create the new user postgres to run the PostgreSQL processes. As the root user, execute this command: -
- Adding <systemitem class="username">postgres</systemitem> - - $ adduser postgres - -
+ adduser postgres
Initialize the database directory and start up PostgreSQL. As the root user, follow these steps: -
- Adding <systemitem class="username">postgres</systemitem> - - $ mkdir -p /usr/local/pgsql/data - $ chown postgres /usr/local/pgsql/data - $ su - postgres - $ initdb -D /usr/local/pgsql/data -E UNICODE --locale=C - $ pg_ctl -D /usr/local/pgsql/data -l /home/postgres/logfile start - -
+ + + +mkdir -p /usr/local/pgsql/data +chown postgres /usr/local/pgsql/data +su - postgres +initdb -D /usr/local/pgsql/data -E UNICODE --locale=C +pg_ctl -D /usr/local/pgsql/data -l /home/postgres/logfile start + + If an error occurs during the final step above, review the path of the home directory for the postgres user. It may be /var/lib/postresql instead of /home/postres. -- 2.43.2