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/10 10:14] urbanl [Instalation and software configuration] |
||
---|---|---|---|
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 | ||
+ | # other recommended packages installation | ||
yum install -y mc haveged nmap screen sysstat telnet OpenSMTPD | yum install -y mc haveged nmap screen sysstat telnet OpenSMTPD | ||
</ | </ | ||
Line 58: | Line 61: | ||
<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 default repository version of PostgreSQL is 9.2 but IdM not support that version. In our tutorial, we will install newer version 9.6. Moreover, we install database data into /data not /var/lib which is the default option. | CentOS7 default repository version of PostgreSQL is 9.2 but IdM not support that version. In our tutorial, we will install newer version 9.6. Moreover, we install database data into /data not /var/lib which is the default option. | ||
- | ==== Database server installation - CentOS7 ==== | + | ==== Database server installation - CentOS7 |
- | * Software installation (versions can vary): | + | * Software installation |
<code bash> | <code bash> | ||
yum install -y https:// | yum install -y https:// | ||
yum install -y postgresql96-server postgresql96-contrib pgstat2_96 pg_top96 | yum install -y postgresql96-server postgresql96-contrib pgstat2_96 pg_top96 | ||
</ | </ | ||
+ | #TODO | ||
+ | * Software installation on CentOS7(versions can vary): | ||
+ | <code bash> | ||
+ | # add repository | ||
+ | yum install -y https:// | ||
+ | # disable centos8 build-in module | ||
+ | yum module disable postgresql | ||
+ | # install postgresql components | ||
+ | yum install -y postgresql11-server postgresql11-contrib pgstat2_11 pg_top11 | ||
+ | </ | ||
+ | |||
* 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 | ||
Line 72: | Line 86: | ||
* 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 97: | ||
< | < | ||
- | PGDATA=/ | + | PGDATA=/ |
</ | </ | ||
Line 97: | Line 111: | ||
<code bash> | <code bash> | ||
- | /usr/pgsql-9.6/ | + | /usr/pgsql-11/ |
</ | </ | ||
Line 105: | Line 119: | ||
<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 |
</ | </ | ||