Ставим слона на орла

/ Просмотров: 799
Ставим слона на орла

Ставим PostgreSQL 9.6.7-1.1C на Astra Linux Орёл.

Ставим PostgreSQL Pro 10.4-1.1C на Astra Linux Орёл.

Ставим PostgreSQL Pro 14.4-1.1C на Astra Linux Орёл.

Скачать Astra Linux можно здесь

Ставим PostgreSQL 9.6.7-1.1C на Astra Linux Орёл.

wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7ubuntu0.5_amd64.deb
dpkg -i libicu55_55.1-7ubuntu0.5_amd64.deb
dpkg -i libpq5_9.6.7-1.1C_amd64.deb
apt-get install postgresql-client-common -y
apt-get install postgresql-common -y
dpkg -i postgresql-client-9.6_9.6.7-1.1C_amd64.deb
dpkg -i postgresql-9.6_9.6.7-1.1C_amd64.deb
dpkg -i postgresql-contrib-9.6_9.6.7-1.1C_amd64.deb
cp /etc/postgresql/9.6/main/pg_hba.conf /etc/postgresql/9.6/main/pg_hba.conf.bak
cat /etc/postgresql/9.6/main/pg_hba.conf.bak | sed 's/local *all *postgres *peer/local   all             postgres                                trust/g' > /etc/postgresql/9.6/main/pg_hba.conf
service postgresql restart
psql -U postgres -d template1 -c "ALTER USER postgres PASSWORD 'password'"
cp /etc/postgresql/9.6/main/pg_hba.conf.bak /etc/postgresql/9.6/main/pg_hba.conf
service postgresql restart

Ставим PostgreSQL Pro 10.4-1.1C на Astra Linux Орёл.

mkdir -p /opt/distr/postgres
cd /opt/distr/postgres
wget -r --no-parent --no-check-certificate https://repo.postgrespro.ru/pg1c-10/astra-orel/2.12/
wget --no-check-certificate https://repo.postgrespro.ru/pg1c-11/keys/GPG-KEY-POSTGRESPRO
echo 'deb file:///opt/distr/postgres/repo.postgrespro.ru/pg1c-10/astra-orel/2.12 orel contrib main non-free' >> /etc/apt/sources.list
apt-key add GPG-KEY-POSTGRESPRO
apt update
apt -y install postgrespro-1c-10    
systemctl enable postgrespro-1c-10    
cp /var/lib/pgpro/1c-10/data/pg_hba.conf /var/lib/pgpro/1c-10/data/pg_hba.conf.bak
cat /var/lib/pgpro/1c-10/data/pg_hba.conf.bak | sed 's/local *all *all *peer/local   all             all                                trust/g' > /var/lib/pgpro/1c-10/data/pg_hba.conf
systemctl restart postgrespro-1c-10
psql -U postgres -d template1 -c "ALTER USER postgres PASSWORD 'pass'"
cp /var/lib/pgpro/1c-10/data/pg_hba.conf.bak /var/lib/pgpro/1c-10/data/pg_hba.conf
systemctl restart postgrespro-1c-10

Ставим PostgreSQL Pro 14.4-1.1C на Astra Linux Орёл.

mkdir -p /opt/distr/postgres
cd /opt/distr/postgres
wget -r --no-parent --no-check-certificate https://repo.postgrespro.ru/pg1c-14/astra-orel/2.12/
wget --no-check-certificate https://repo.postgrespro.ru/pg1c-14/keys/GPG-KEY-POSTGRESPRO
echo 'deb file:///opt/distr/postgres/repo.postgrespro.ru/pg1c-14/astra-orel/2.12 orel contrib main non-free' >> /etc/apt/sources.list
apt-key add GPG-KEY-POSTGRESPRO
apt update
apt -y install postgrespro-1c-14
systemctl enable postgrespro-1c-14  
cp /var/lib/pgpro/1c-14/data/pg_hba.conf /var/lib/pgpro/1c-14/data/pg_hba.conf.bak
cat /var/lib/pgpro/1c-14/data/pg_hba.conf.bak | sed 's/local *all *all *peer/local   all             all                                trust/g' > /var/lib/pgpro/1c-14/data/pg_hba.conf
systemctl restart postgrespro-1c-14
psql -U postgres -d template1 -c "ALTER USER postgres PASSWORD 'pass'"
cp /var/lib/pgpro/1c-14/data/pg_hba.conf.bak /var/lib/pgpro/1c-14/data/pg_hba.conf
systemctl restart postgrespro-1c-14

Источник