Files
nntpchan/doc/postgres.md
T
Tristan B. Kildaire 5b06abe63d Update postgres.md
2016-06-05 11:17:58 +02:00

851 B

Configuring Postgres database

##Installing Postgres

Postgres on Debian (as root)

# install as root
apt-get install --no-install-recommends postgresql postgresql-client

##Cibfirguinrg Postgres

Setting up postgres (as root)

# become postgres user
su postgres
# spawn postgres admin shell
psql 

You'll get a prompt, enter the following:

CREATE ROLE srnd WITH LOGIN PASSWORD 'srnd';
CREATE DATABASE srnd WITH ENCODING 'UTF8' OWNER srnd;
\q

For demo purposes we'll use these credentials. These are default values, please change them later.

##Important

these credentials assume you are going to run using a user called srnd, if your username you plan to run the daemon as is different please change srnd to your username.

##Next step

See the Running NNTPChan.