Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:adm:server_preparation_tmp [2020/03/10 09:55] urbanl created |
tutorial:adm:server_preparation_tmp [2020/03/11 08:24] urbanl [Database server installation - CentOS7 and CentOS8 -!CHANGED] |
||
---|---|---|---|
Line 45: | Line 45: | ||
</ | </ | ||
+ | -!CHANGED | ||
When installing to centos8, check and install these packages: | When installing to centos8, check and install these packages: | ||
< | < | ||
+ | # check installed packages. It's recommanded to have them installed. | ||
yum list installed | yum list installed | ||
- | yum install -y mc haveged nmap screen sysstat telnet | + | # other recommended packages installation |
+ | yum install -y mc haveged nmap screen sysstat telnet | ||
</ | </ | ||
Line 55: | Line 58: | ||
screen dnsutils sysstat lsof haveged nmap tcpdump traceroute tcptraceroute curl iptables-persistent | screen dnsutils sysstat lsof haveged nmap tcpdump traceroute tcptraceroute curl iptables-persistent | ||
</ | </ | ||
- | ===== PostgreSQL ===== | + | ===== PostgreSQL |
<note tip>If you are install CzechIdM on Sql server, please follow [[tutorial: | <note tip>If you are install CzechIdM on Sql server, please follow [[tutorial: | ||
- | CentOS7 | + | CentOS8 |
- | ==== Database server installation - CentOS7 | + | ==== Database server installation - CentOS8 -!CHANGED |
- | * Software installation (versions can vary): | + | * Software installation |
<code bash> | <code bash> | ||
- | yum install -y https:// | + | # enable module postgres 12 |
- | yum install -y postgresql96-server | + | yum module enable postgresql:12 |
+ | yum install -y postgresql-server | ||
</ | </ | ||
+ | |||
* create new system directory: | * create new system directory: | ||
- | < | + | |
- | mkdir -p / | + | < |
+ | mkdir -p / | ||
chown -R postgres: | chown -R postgres: | ||
chmod 700 /data/pgsql | chmod 700 /data/pgsql | ||
</ | </ | ||
+ | |||
* Copy of the configuration file for systemd, in which we will make change of directory for data: | * Copy of the configuration file for systemd, in which we will make change of directory for data: | ||
+ | |||
<code bash> | <code bash> | ||
- | cp / | + | cp / |
</ | </ | ||
- | In the file ''/ | + | |
+ | In the file ''/ | ||
< | < | ||
# Location of database directory | # Location of database directory | ||
Line 83: | Line 93: | ||
< | < | ||
- | PGDATA=/ | + | PGDATA=/ |
</ | </ | ||
Line 97: | Line 107: | ||
<code bash> | <code bash> | ||
- | /usr/pgsql-9.6/ | + | /usr/pgsql-11/ |
</ | </ | ||
Line 105: | Line 115: | ||
<code bash> | <code bash> | ||
- | systemctl start postgresql-9.6.service | + | systemctl start postgresql-11.service |
- | systemctl enable postgresql-9.6.service | + | systemctl enable postgresql-11.service |
</ | </ | ||