Installation: you can directly install and compile it, or compile and install it through source code. /configure, make, and makeinstall install different linuxos directly and different versions. for centos, you can use yuminstallpostgresql-server for installation, but pg version 5 corresponds to 8.16 and 8.47 corresponds to 9.2. Currently the most install: you can directly install and compile it, or you can use the source code to compile and install it. /configure, make, and make install different linux OS installations and versions are different. for centos, you can install postgresql-server through yum install, however, for PostgreSQL 5, 8.1 6 corresponds to 8.4 7 and 9.2. Now the MAX version is 9.5.0 (20160112) plugin, for example I want to install pg 9.5 in centos 7, yum install http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpmyum install postgresql95-server postgresql95-contrib (contrib install third-party package and distributed package, can be uneasy) /usr/pgsql-9.5/bin/postgresql95-setup initdb (initialization library)/bin/systemctl start postgresql-9.5.service (startup) log on to the database su Hei spsql \ l to view all databases \ q and exit (the data directory is automatically installed in/var/lib/pgsql/9.5/data)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.