1, change permissions, execute command: chmod 755 postgresql-9.2.4-1-linux-x64.run
2. Execute the command to install the database. Go to the directory where the file is located and enter the./postgresql-9.2.4-1-linux-x64.run. Then select the database installation directory.
This article defaults to direct carriage return. That is, the installation path is/OPT/POSTGRESQL/9.2/
3. Select the path where the data is saved. This article also defaults. Enter directly. That is, the path is:/opt/postgresql/9.2/data directory.
4. Set the password for the Postgres account and set the port number. This article port number is the default 5432, the direct carriage return can.
5. Select the encoding format for the database. This article chooses 4, that is the Zh_cn.utf8.
6, after selecting the encoding format, wait for the database installation progress, until the progress reached 100% to prove that the database has been installed
7, verify that the installation is complete, and that the database has started successfully. Execute Command PS-E | grep Postgres to see if the process exists.
Execute command lsof-i:5432 to see if the database port is enabled.
PostgreSQL Linux Installation