$ yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-redhat11-11-2.noarch.rpm
$ yum install pgadmin4-web.noarch
$ pip install psycopg2-binary
$ pip install --upgrade pip
$ python /usr/lib/python2.7/site-packages/pgadmin4-web/setup.py
$ chown -R apache:apache /var/lib/pgadmin /var/log/pgadmin /var/log/pgadmin4
$ cat > /etc/httpd/conf.d/pgadmin4.conf << EOF
<VirtualHost *>
ServerName pgadmin.rt.ru
WSGIDaemonProcess pgadmin processes=1 threads=25
WSGIScriptAlias / /usr/lib/python2.7/site-packages/pgadmin4-web/pgAdmin4.wsgi
<Directory "/usr/lib/python2.7/site-packages/pgadmin4-web/">
WSGIProcessGroup pgadmin
WSGIApplicationGroup %{GLOBAL}
Require all granted
</Directory>
</VirtualHost>
EOF
$ systemctl enable httpd
$ systemctl start httpd
Главная
- Просмотров: 6183