安装 sudo dnf install -y vim bash-completion wget sudo dnf update -y #sudo reboot sudo dnf install https://download
sudo dnf install -y vim bash-completion wget
sudo dnf update -y
#sudo reboot
sudo dnf install https://download.postgresql.org/pub/repos/yum/reporpms/F-31-x86_64/pgdg-fedora-repo-latest.noarch.rpm
sudo dnf install postgresql12-server postgresql12
sudo /usr/pgsql-12/bin/postgresql-12-setup initdb
sudo systemctl enable --now postgresql-12
systemctl status postgresql-12
#sudo firewall-cmd --add-service=postgresql --permanent
#sudo firewall-cmd --reload
$ sudo vim /var/lib/pgsql/12/data/postgresql.conf
listen_addresses = "*"$ sudo vim /var/lib/pgsql/11/data/pg_hba.conf
# Accept from anywhere
host all all 0.0.0.0/0 md5# Accept from trusted subnet
host all all 10.10.10.0/24 md5$ sudo systemctl restart postgresql-12
sudo su - postgres
psql -c "alter user postgres with passWord "StrongPassword""
Https://computingforgeeks.com/how-to-install-pgadmin-on-Centos-fedora/
--结束END--
本文标题: Fedora 31 - 安装PostgreSQL 12
本文链接: https://lsjlt.com/news/4105.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0