yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
[root@localhost ~]# yum list|grep postgresql calligra-kexi-driver-postgresql.x86_64 2.9.10-1.el7 epel collectd-postgresql.x86_64 5.6.0-1.el7 epel freeradius-postgresql.x86_64 3.0.4-6.el7 base libreoffice-postgresql.x86_64 1:4.3.7.2-5.el7_2.1 updates mingw32-postgresql.noarch 9.3.4-2.el7 epel mingw64-postgresql.noarch 9.3.4-2.el7 epel opendbx-postgresql.x86_64 1.4.6-6.el7 epel opensips-postgresql.x86_64 1.10.5-3.el7 epel owncloud-postgresql.noarch 9.0.4-1.el7 epel pcp-pmda-postgresql.x86_64 3.10.6-2.el7 base pdns-backend-postgresql.x86_64 3.4.10-1.el7 epel perdition-postgresql.x86_64 2.1-5.el7 epel postgresql.i686 9.2.15-1.el7_2 updates postgresql.x86_64 9.2.15-1.el7_2 updates postgresql-contrib.x86_64 9.2.15-1.el7_2 updates postgresql-devel.i686 9.2.15-1.el7_2 updates postgresql-devel.x86_64 9.2.15-1.el7_2 updates postgresql-docs.x86_64 9.2.15-1.el7_2 updates postgresql-jdbc.noarch 9.4.1212-1.rhel7 pgdg96 postgresql-jdbc-javadoc.noarch 9.4.1212-1.rhel7 pgdg96 postgresql-libs.i686 9.2.15-1.el7_2 updates postgresql-libs.x86_64 9.2.15-1.el7_2 updates postgresql-odbc.x86_64 09.03.0100-2.el7 base postgresql-pgpool-II.x86_64 3.4.6-1.el7 epel postgresql-pgpool-II-devel.x86_64 3.4.6-1.el7 epel postgresql-pgpool-II-extensions.x86_64 3.4.6-1.el7 epel postgresql-plperl.x86_64 9.2.15-1.el7_2 updates postgresql-plpython.x86_64 9.2.15-1.el7_2 updates postgresql-plruby.x86_64 0.5.3-13.el7 epel postgresql-plruby-doc.x86_64 0.5.3-13.el7 epel postgresql-pltcl.x86_64 9.2.15-1.el7_2 updates postgresql-server.x86_64 9.2.15-1.el7_2 updates postgresql-test.x86_64 9.2.15-1.el7_2 updates postgresql-unit96.x86_64 1.0-1.rhel7 pgdg96 postgresql-unit96-debuginfo.x86_64 1.0-1.rhel7 pgdg96 postgresql-upgrade.x86_64 9.2.15-1.el7_2 updates postgresql96.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-contrib.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-debuginfo.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-devel.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-docs.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-libs.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-odbc.x86_64 09.05.0400-1PGDG.rhel7 pgdg96 postgresql96-plperl.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-plpython.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-pltcl.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-python.x86_64 4.2-1PGDG.rhel7 pgdg96 postgresql96-python-debuginfo.x86_64 4.2-1PGDG.rhel7 pgdg96 postgresql96-server.x86_64 9.6.1-1PGDG.rhel7 pgdg96 postgresql96-tcl.x86_64 2.1.1-1.rhel7 pgdg96 postgresql96-tcl-debuginfo.x86_64 2.1.1-1.rhel7 pgdg96 postgresql96-test.x86_64 9.6.1-1PGDG.rhel7 pgdg96 proftpd-postgresql.x86_64 1.3.5b-2.el7 epel python-testing.postgresql.noarch 1.1.0-2.el7 epel qt-postgresql.i686 1:4.8.5-12.el7_2 updates qt-postgresql.x86_64 1:4.8.5-12.el7_2 updates qt5-qtbase-postgresql.x86_64 5.6.1-3.el7 epel soci-postgresql.x86_64 3.2.3-1.el7 epel soci-postgresql-devel.x86_64 3.2.3-1.el7 epel
yum install postgresql96-server postgresql96-contrib
/usr/pgsql-9.6/bin/postgresql96-setup initdb
vi /var/lib/pgsql/9.6/data/pg_hba.conf
# TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all peer # IPv4 local connections: host all all 127.0.0.1/32 ident # IPv6 local connections: host all all ::1/128 ident # Allow replication connections from localhost, by a user with the # replication privilege. #local replication postgres peer #host replication postgres 127.0.0.1/32 ident #host replication postgres ::1/128 ident
# IPv4 local connections: host all all 127.0.0.1/32 trust host all all 8.8.8.8/32(需要连接的服务器IP) trust
systemctl start postgresql-9.6 #启动服务 systemctl restart postgresql-9.6 #重启服务 systemctl stop postgresql-9.6 #停止服务 systemctl enable postgresql-9.6 #自动启动
sudo -i -u postgres
[root@localhost ~]# sudo -i -u postgres -bash-4.2$ psql psql (9.6.1) Type "help" for help. postgres=#
firewall-cmd --add-service=postgresql --permanent 开放postgresql服务 firewall-cmd --reload 重载防火墙
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有