Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/doc/install-and-configure-postgres.md

38 lines
941 B
Markdown
Raw Normal View History

2016-06-05 14:14:19 +05:00
Configuring Postgres database
=============================
2016-02-07 19:36:46 +05:00
2016-06-05 14:18:46 +05:00
These are instructions for setting up NNTPChan with Postgres as the data-storage system.
2016-06-05 14:17:58 +05:00
##Installing Postgres
2016-02-07 19:36:46 +05:00
Postgres on Debian (as root)
# install as root
apt-get install --no-install-recommends postgresql postgresql-client
2016-06-05 14:19:52 +05:00
##Configuring Postgres
2016-02-07 19:36:46 +05:00
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.
2016-06-05 14:20:06 +05:00
###Important
2016-02-07 19:36:46 +05:00
2016-06-05 14:20:06 +05:00
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.
2016-02-07 19:36:46 +05:00
2016-06-05 14:15:51 +05:00
##Next step
See the [Running NNTPChan](running.md).