Zabbix alt: различия между версиями
Перейти к навигации
Перейти к поиску
Vovan (обсуждение | вклад) (→Postgresql) |
Vovan (обсуждение | вклад) (→Postgresql) |
||
Строка 22: | Строка 22: | ||
/etc/init.d/postgresql initdb | /etc/init.d/postgresql initdb | ||
+ | |||
+ | <pre> | ||
+ | cat << 'EOF' > /var/lib/pgsql/data/pg_hba.conf | ||
+ | # TYPE DATABASE USER ADDRESS METHOD | ||
+ | |||
+ | # "local" is for Unix domain socket connections only | ||
+ | local all all trust | ||
+ | |||
+ | # IPv4 local connections: | ||
+ | host all all 127.0.0.1/32 trust | ||
+ | host all all 0.0.0.0/0 md5 | ||
+ | |||
+ | # Allow replication connections from localhost, by a user with the | ||
+ | # replication privilege. | ||
+ | local replication all trust | ||
+ | host replication all 127.0.0.1/32 trust | ||
+ | EOF | ||
+ | </pre> | ||
systemctl enable --now postgresql | systemctl enable --now postgresql |
Версия 20:31, 30 ноября 2023
Содержание
Zabbix на Alt P10 jeos
Источник: здесь
Подготовка
apt-get update && apt-get -y dist-upgrade
apt-get install -y nano update-kernel
update-kernel -y
reboot
Postgresql
Установка
apt-get install -y postgresql16-server
Первоначальный запуск
/etc/init.d/postgresql initdb
cat << 'EOF' > /var/lib/pgsql/data/pg_hba.conf # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all 127.0.0.1/32 trust host all all 0.0.0.0/0 md5 # Allow replication connections from localhost, by a user with the # replication privilege. local replication all trust host replication all 127.0.0.1/32 trust EOF
systemctl enable --now postgresql