<VirtualHost *:8081>
ServerName my_ip
WSGIDaemonProcess pgadmin processes=1 threads=25 python-home=/home/user/environments/my_env
WSGIScriptAlias / /home/user/environments/my_env/lib/python3.6/site-packages/pgadmin4/pgAdmin4.wsgi
<Directory "/home/user/environments/my_env/lib/python3.6/site-packages/pgadmin4/">
WSGIProcessGroup pgadmin
WSGIApplicationGroup %{GLOBAL}
Require all granted
</Directory>
步骤是:
Listen 8081
。
sudo nano /etc/apache2/ports.conf
sudo nano /etc/apache2/sites-available/pgadmin4.conf
<VirtualHost my_ip:8081>
ServerName my_ip:8081
WSGIDaemonProcess pgadmin processes=1 threads=25 python-home=/home/user/environments/my_env
WSGIScriptAlias / /home/user/environments/my_env/lib/python3.6/site-packages/pgadmin4/pgAdmin4.wsgi
<Directory "/home/user/environments/my_env/lib/python3.6/site-packages/pgadmin4/">
WSGIProcessGroup pgadmin
WSGIApplicationGroup %{GLOBAL}
Require all granted
</Directory>
我正在尝试您的步骤,但是,我没有在下面列出
pgadmin4.conf
/etc/apache2/sites-available/pgadmin4.conf
每当我尝试运行脚本并启动 Apac 时,都会失败,因为端口正在使用中。怎么改成8080端口,我已经改了ports.conf并添加了
Listen 8080
但找不到在哪里为 pgadmin4 设置此值。谢谢