установка pgadmin4 на centos 7

$ 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

$ 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

Comments powered by CComment