下载 PostgreSQL-10软件包

官网地址:https://www.postgresql.org/

选择自己的版本

此处已postgresql-10.16-2-linux-x64.run安装为例进行安装说明

下载地址:https://get.enterprisedb.com/postgresql/postgresql-10.16-2-linux-x64.run

第一步上传安装包至服务器

postgresql-10.16-2-linux-x64.run

第二步开始安装

[root@sonar1 /]# ./postgresql-10.16-2-linux-x64.run

Welcome to the PostgreSQL Setup Wizard.

Please specify the directory where PostgreSQL will be installed.

Installation Directory [/opt/PostgreSQL/10]:

Select the components you want to install; clear the components you do not want

to install. Click Next when you are ready to continue.

PostgreSQL Server [Y/n] :Y

pgAdmin 4 [Y/n] :

Stack Builder [Y/n] :

Command Line Tools [Y/n] :

Is the selection above correct? [Y/n]:

Please select a directory under which to store your data.

Data Directory [/opt/PostgreSQL/10/data]:

Please provide a password for the database superuser (postgres). A locked Unix

user account (postgres) will be created if not present.

Password :

Retype password :

Please select the port number the server should listen on.

Port [5432]:

Advanced Options

Select the locale to be used by the new database cluster.

Locale

[1] [Default locale]

[2] C

[3] C.utf8

[4] en_AG

[5] en_AU

[6] en_AU.utf8

[7] en_BW

[8] en_BW.utf8

[9] en_CA

[10] en_CA.utf8

[11] en_DK

[12] en_DK.utf8

[13] en_GB

[14] en_GB.iso885915

[15] en_GB.utf8

[16] en_HK

[17] en_HK.utf8

[18] en_IE

[19] en_IE@euro

[20] en_IE.utf8

[21] en_IL

[22] en_IN

[23] en_NG

[24] en_NZ

[25] en_NZ.utf8

[26] en_PH

[27] en_PH.utf8

[28] en_SC.utf8

[29] en_SG

[30] en_SG.utf8

[31] en_US

[32] en_US.iso885915

[33] en_US.utf8

[34] en_ZA

[35] en_ZA.utf8

[36] en_ZM

[37] en_ZW

[38] en_ZW.utf8

[39] POSIX

[40] zh_CN

[41] zh_CN.utf8

[42] zh_HK.utf8

[43] zh_SG

[44] zh_SG.utf8

[45] zh_TW.euctw

[46] zh_TW.utf8

Please choose an option [1] : 41

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Pre Installation Summary

The following settings will be used for the installation::

Installation Directory: /opt/PostgreSQL/10

Server Installation Directory: /opt/PostgreSQL/10

Data Directory: /opt/PostgreSQL/10/data

Database Port: 5432

Database Superuser: postgres

Operating System Account: postgres

Database Service: postgresql-10

Command Line Tools Installation Directory: /opt/PostgreSQL/10

pgAdmin4 Installation Directory: /opt/PostgreSQL/10/pgAdmin 4

Stack Builder Installation Directory: /opt/PostgreSQL/10

Press [Enter] to continue:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Setup is now ready to begin installing PostgreSQL on your computer.

Do you want to continue? [Y/n]:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Please wait while Setup installs PostgreSQL on your computer.

Installing

0% ______________ 50% ______________ 100%

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Setup has finished installing PostgreSQL on your computer.

第三步验证安装成功并启动

[root@sonar1 /]#
[root@sonar1 /]# netstat -an |grep 5432
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN

centos 8 安装 PostgreSQL-10的更多相关文章

  1. 在CentOS 7 / RHEL 7安装PostgreSQL 10

    CentOS 到了7.x版本, PostgreSQL也来到了10.x版本. 前些天MySQL都直接跨到了8.0版本. 本文是一篇在CentOS 7.4上安装安装PostgreSQL 10.3 的教程. ...

  2. Linux CentOS 7 安装PostgreSQL 9.5.17 (源码编译)

    近日需要将PostgreSQL数据库从Windows中迁移到Linux中,Linux CentOS 7 安装PostgreSQL 9.5.17 安装过程 特此记录. 安装环境: 数据库:Postgre ...

  3. Ubuntu下编译安装postgreSQL 10.5

    Ubuntu下编译安装postgreSQL 10.5 ubuntu 16.04 LTS系统postgreSQL 10.5 安装包准备 1.从PostgreSQL官网下载PostgreSQL的安装包 安 ...

  4. Centos 7 安装 PostgreSQL

    本文只讲PostgreSQL在CentOS 7.x 下的安装,其他系统请查看:https://www.postgresql.org/download PostgreSQL 所用版本为:PostgreS ...

  5. Centos 7 安装 PostgreSQL PGAdmin4

    本文只讲PostgreSQL在CentOS 7.x 下的安装,其他系统请查看:https://www.postgresql.org/download PostgreSQL 所用版本为:PostgreS ...

  6. CentOS 7 - 安装PostgreSQL

    一,用yum安装PostgreSQL . 选择安装版本和服务器平台后,执行安装命令,例如我要安装是9.6版本,平台是CentOS 7. https://www.postgresql.org/downl ...

  7. CentOS下安装postgresql

    一.说明 postgresql版本:9.4.1 安装包: postgresql94-server-9.4.1-1PGDG.rhel6.x86_64.rpm postgresql94-libs-9.4. ...

  8. 阿里云服务器 centos 7 安装postgresql 11

    Postgresql简介 官方网站:https://www.postgresql.org/ 简介参考zhihu文章 https://www.zhihu.com/question/20010554 关于 ...

  9. CentOS 6安装PostgreSQL

    https://zh.wikipedia.org/wiki/PostgreSQL PostgreSQL是自由的对象-关系型数据库服务器(数据库管理系统),在灵活的BSD-风格许可证下发行.它在其他开放 ...

  10. install postgresql 10 on redhat linux 7 Redhat 安装 postgresql 10

    ---恢复内容开始--- 1. install linux 2. 切换mirror a. 备份原来的repo  文件, [root@localhost ~]# mv /etc/yum.repos.d/ ...

随机推荐

  1. Docker Swarm(八)滚动更新、回滚服务

    滚动更新.回滚服务 默认情况下, swarm一次只更新一个副本,并且两个副本之间没有等待时间,我们可以通过: # 定义并行更新的副本数量--update-parallelism# 定义滚动更新的时间间 ...

  2. 016.Python闭包函数以及locals和globals

    一 闭包函数 内函数使用了外函数的局部变量,并且外函数把内函数返回出来的过程叫做闭包,这个内函数叫做闭包函数 1.1 闭包函数语法 def outer(): a = 5 def inner(): pr ...

  3. 011.Python的列表的相关操作

    一 列表的相关操作 1.1  列表的拼接 lst1 = [1,2,3] lst2 = [4,5,6] res = lst1 + lst2 print(res) 执行 [root@node10 pyth ...

  4. ioctl 函数的FIOREAD参数

    在学习ioctl 时常常跟 read, write 混淆.其实 ioctl 是用来设置硬件控制寄存器,或者读取硬件状态寄存器的数值之类的. 而read,write 是把数据丢入缓冲区,硬件的驱动从缓冲 ...

  5. c# sql在where查询语句中使用字符串变量与int型变量

    使用where语句访问数据库时where语句用上文中以及定义过的变量来查询. string sql3 = string.Format("update Ships set ContainerN ...

  6. 结合JVM 浅谈Java 类加载器(Day_03)

    所谓错过,不是错了,而是过了. 什么是JAVA类加载? Class对象由JVM自动产生,每当一个类被加载时,JVM就自动为其生成一个Class对象,通过Class对象可以获得类的相关信息.将类信息读取 ...

  7. Java注解类型(@Annotation)

    简述 注解本质是一个继承了Annotation的特殊接口,其具体实现类是Java运行时生成的动态代理类.而我们通过反射获取注解时,返回的是Java运行时生成的动态代理对象$Proxy1.通过代理对象调 ...

  8. ASP.NET Core文件上传IFormFile于Request.Body的羁绊

    前言 在上篇文章深入探究ASP.NET Core读取Request.Body的正确方式中我们探讨了很多人在日常开发中经常遇到的也是最基础的问题,那就是关于Request.Body的读取方式问题,看是简 ...

  9. Pandas之:Pandas高级教程以铁达尼号真实数据为例

    Pandas之:Pandas高级教程以铁达尼号真实数据为例 目录 简介 读写文件 DF的选择 选择列数据 选择行数据 同时选择行和列 使用plots作图 使用现有的列创建新的列 进行统计 DF重组 简 ...

  10. Xilinx FPGA全局介绍

    Xilinx FPGA全局介绍 现场可编程门阵列 (FPGA) 具有诸多特性,无论是单独使用,抑或采用多样化架构,皆可作为宝贵的计算资产:许多设计人员并不熟悉 FPGA,亦不清楚如何将这类器件整合到设 ...