Browse Source

Update POSTGRES.md

Correct some typos
pull/1/head
Amit Nir 5 years ago
committed by GitHub
parent
commit
2f28c2fe19
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      POSTGRES.md

+ 4
- 4
POSTGRES.md View File

@ -29,11 +29,11 @@ sudo service postgresql-12 start
``` ```
Create Kamailio DB Create Kamailio DB
``` ```
su postgres -c '/usr/pgsql-12/bin/createdb kamailio'
su - postgres -c '/usr/pgsql-12/bin/createdb kamailio'
``` ```
Add DB user and grant privileges Add DB user and grant privileges
``` ```
sudo su postgres -c psql
sudo su - postgres -c psql
CREATE USER kamailio WITH PASSWORD 'kamailio'; CREATE USER kamailio WITH PASSWORD 'kamailio';
GRANT ALL privileges on database kamailio to kamailio; GRANT ALL privileges on database kamailio to kamailio;
``` ```
@ -50,7 +50,7 @@ host all all ::1/128 password
``` ```
Increase the max number of connections and shared memory Increase the max number of connections and shared memory
``` ```
vi /var/lib/pgsql/12/data/postgres.conf
vi /var/lib/pgsql/12/data/postgresql.conf
shared_buffers = 256MB shared_buffers = 256MB
max_connections = 500 max_connections = 500
@ -68,7 +68,7 @@ git checkout 4.3-postgres
``` ```
Initialize the kamailio database with all the required tables: Initialize the kamailio database with all the required tables:
``` ```
psql -U kamailio -d postgres://kamailio:kamailio@127.0.0.1/kamailio -f /etc/kazoo/kamailo/db_scripts/kamailio_initdb_postgres.sql
psql -U kamailio -d postgres://kamailio:kamailio@127.0.0.1/kamailio -f /etc/kazoo/kamailio/db_scripts/kamailio_initdb_postgres.sql
``` ```
Notice that the backend DB in local.cfg is now postgres Notice that the backend DB in local.cfg is now postgres
``` ```


Loading…
Cancel
Save