- You search for the package you'll want to install
- To get more details:
- Then install it:
- Setup the postgres password:
- Init the postgres first DB
- Setup your connections:
- Start postgresql service
- And finaly enable it to start automatically at next boot
[root@toolz ~]# yum search postgres|grep server
[root@toolz ~]# yum info postgresql-server.x86_64
[root@toolz ~]# yum install postgresql-server.x86_64
[root@toolz ~]# passwd postgres
[root@toolz ~]# sudo postgresql-setup initdb
[root@toolz ~]# sudo vi /var/lib/pgsql/data/pg_hba.conf
[root@toolz ~]# systemctl start postgresql
[root@toolz ~]# systemctl enable postgresql
What to do next:
- pg_hba.conf
- create databases and users
- postgresql-server logging
No comments:
Post a Comment