pg10 10.3 1 linux64,Install Postgresql 10 In Ubutnu 16.04 LTS

PostgreSQL数据库是一个高性能的全功能的开源关系型数据库,这里讲解一下如何在Ubuntu 16.04 LTS 下安装 PostgreSQL 10。

添加软件源

wget -q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

更新本地缓存

apt update

安装

lwk@qwfys ~ $ apt install postgresql-10 -y

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

bbswitch-dkms lib32gcc1 libc6-i386 libjansson4 libvdpau1 libxnvctrl0 screen-resolution-extra xserver-xorg-legacy

Use 'sudo apt autoremove' to remove them.

The following additional packages will be installed:

libjs-underscore libpq5 libwxbase3.0-0v5 libwxgtk3.0-0v5 pgadmin3-data pgdg-keyring postgresql-client-10 postgresql-client-common postgresql-common

Suggested packages:

javascript-common postgresql-contrib locales-all postgresql-doc-10 libjson-perl

Recommended packages:

pgagent sysstat

The following NEW packages will be installed:

libjs-underscore libwxbase3.0-0v5 libwxgtk3.0-0v5 pgadmin3 pgadmin3-data pgdg-keyring postgresql-10 postgresql-client-10 postgresql-client-common postgresql-common

The following packages will be upgraded:

libpq5

1 upgraded, 10 newly installed, 0 to remove and 1 not upgraded.

Need to get 17.3 MB of archives.

After this operation, 70.0 MB of additional disk space will be used.

Get:1 http://mirrors.ustc.edu.cn/ubuntu xenial/main amd64 libjs-underscore all 1.7.0~dfsg-1ubuntu1 [46.7 kB]

Get:2 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/universe amd64 libwxbase3.0-0v5 amd64 3.0.2+dfsg-1.3ubuntu0.1 [971 kB]

Get:3 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/universe amd64 libwxgtk3.0-0v5 amd64 3.0.2+dfsg-1.3ubuntu0.1 [4,344 kB]

Get:4 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 libpq5 amd64 10.1-1.pgdg16.04+1 [157 kB]

Get:5 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 pgadmin3-data all 1.22.2-2.pgdg16.04+1 [2,516 kB]

Get:6 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 pgadmin3 amd64 1.22.2-2.pgdg16.04+1 [3,067 kB]

Get:7 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 pgdg-keyring all 2017.3 [10.3 kB]

Get:8 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 postgresql-client-common all 188.pgdg16.04+1 [81.5 kB]

Get:9 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 postgresql-client-10 amd64 10.1-1.pgdg16.04+1 [1,277 kB]

Get:10 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 postgresql-common all 188.pgdg16.04+1 [220 kB]

Get:11 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 postgresql-10 amd64 10.1-1.pgdg16.04+1 [4,635 kB]

Fetched 17.3 MB in 6min 12s (46.5 kB/s)

Preconfiguring packages ...

Selecting previously unselected package libjs-underscore.

(Reading database ... 210818 files and directories currently installed.)

Preparing to unpack .../libjs-underscore_1.7.0~dfsg-1ubuntu1_all.deb ...

Unpacking libjs-underscore (1.7.0~dfsg-1ubuntu1) ...

Preparing to unpack .../libpq5_10.1-1.pgdg16.04+1_amd64.deb ...

Unpacking libpq5:amd64 (10.1-1.pgdg16.04+1) over (9.5.10-0ubuntu0.16.04) ...

Selecting previously unselected package libwxbase3.0-0v5:amd64.

Preparing to unpack .../libwxbase3.0-0v5_3.0.2+dfsg-1.3ubuntu0.1_amd64.deb ...

Unpacking libwxbase3.0-0v5:amd64 (3.0.2+dfsg-1.3ubuntu0.1) ...

Selecting previously unselected package libwxgtk3.0-0v5:amd64.

Preparing to unpack .../libwxgtk3.0-0v5_3.0.2+dfsg-1.3ubuntu0.1_amd64.deb ...

Unpacking libwxgtk3.0-0v5:amd64 (3.0.2+dfsg-1.3ubuntu0.1) ...

Selecting previously unselected package pgadmin3-data.

Preparing to unpack .../pgadmin3-data_1.22.2-2.pgdg16.04+1_all.deb ...

Unpacking pgadmin3-data (1.22.2-2.pgdg16.04+1) ...

Selecting previously unselected package pgadmin3.

Preparing to unpack .../pgadmin3_1.22.2-2.pgdg16.04+1_amd64.deb ...

Unpacking pgadmin3 (1.22.2-2.pgdg16.04+1) ...

Selecting previously unselected package pgdg-keyring.

Preparing to unpack .../pgdg-keyring_2017.3_all.deb ...

Unpacking pgdg-keyring (2017.3) ...

Selecting previously unselected package postgresql-client-common.

Preparing to unpack .../postgresql-client-common_188.pgdg16.04+1_all.deb ...

Unpacking postgresql-client-common (188.pgdg16.04+1) ...

Selecting previously unselected package postgresql-client-10.

Preparing to unpack .../postgresql-client-10_10.1-1.pgdg16.04+1_amd64.deb ...

Unpacking postgresql-client-10 (10.1-1.pgdg16.04+1) ...

Selecting previously unselected package postgresql-common.

Preparing to unpack .../postgresql-common_188.pgdg16.04+1_all.deb ...

Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'

Unpacking postgresql-common (188.pgdg16.04+1) ...

Selecting previously unselected package postgresql-10.

Preparing to unpack .../postgresql-10_10.1-1.pgdg16.04+1_amd64.deb ...

Unpacking postgresql-10 (10.1-1.pgdg16.04+1) ...

Processing triggers for libc-bin (2.23-0ubuntu9) ...

Processing triggers for doc-base (0.10.7) ...

Processing 1 added doc-base file...

Registering documents with scrollkeeper...

Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...

Processing triggers for desktop-file-utils (0.22+linuxmint1) ...

Processing triggers for mime-support (3.59ubuntu1) ...

Processing triggers for man-db (2.7.5-1) ...

Processing triggers for systemd (229-4ubuntu21) ...

Processing triggers for ureadahead (0.100.0-19) ...

ureadahead will be reprofiled on next reboot

Setting up libjs-underscore (1.7.0~dfsg-1ubuntu1) ...

Setting up libpq5:amd64 (10.1-1.pgdg16.04+1) ...

Setting up libwxbase3.0-0v5:amd64 (3.0.2+dfsg-1.3ubuntu0.1) ...

Setting up libwxgtk3.0-0v5:amd64 (3.0.2+dfsg-1.3ubuntu0.1) ...

Setting up pgadmin3-data (1.22.2-2.pgdg16.04+1) ...

Setting up pgadmin3 (1.22.2-2.pgdg16.04+1) ...

Setting up pgdg-keyring (2017.3) ...

Removing apt.postgresql.org key from trusted.gpg: OK

Setting up postgresql-client-common (188.pgdg16.04+1) ...

Setting up postgresql-client-10 (10.1-1.pgdg16.04+1) ...

update-alternatives: using /usr/share/postgresql/10/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode

Setting up postgresql-common (188.pgdg16.04+1) ...

Adding user postgres to group ssl-cert

Creating config file /etc/postgresql-common/createcluster.conf with new version

Building PostgreSQL dictionaries from installed myspell/hunspell packages...

en_us

Removing obsolete dictionary files:

Setting up postgresql-10 (10.1-1.pgdg16.04+1) ...

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Unescaped left brace in regex is deprecated, passed through in regex; marked by

Creating new PostgreSQL cluster 10/main ...

/usr/lib/postgresql/10/bin/initdb -D /var/lib/postgresql/10/main --auth-local peer --auth-host md5

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.

The database cluster will be initialized with locales

COLLATE: en_US.UTF-8

CTYPE: en_US.UTF-8

MESSAGES: en_US.UTF-8

MONETARY: zh_CN.UTF-8

NUMERIC: zh_CN.UTF-8

TIME: en_US.UTF-8

The default database encoding has accordingly been set to "UTF8".

The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/10/main ... ok

creating subdirectories ... ok

selecting default max_connections ... 100

selecting default shared_buffers ... 128MB

selecting dynamic shared memory implementation ... posix

creating configuration files ... ok

running bootstrap script ... ok

performing post-bootstrap initialization ... ok

syncing data to disk ... ok

Success. You can now start the database server using:

/usr/lib/postgresql/10/bin/pg_ctl -D /var/lib/postgresql/10/main -l logfile start

Ver Cluster Port Status Owner Data directory Log file

10 main 5432 down postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log

update-alternatives: using /usr/share/postgresql/10/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode

Processing triggers for libc-bin (2.23-0ubuntu9) ...

Processing triggers for systemd (229-4ubuntu21) ...

Processing triggers for ureadahead (0.100.0-19) ...

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/536601.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

nginx能访问html静态文件但无法访问php文件

nginx.conf中红框部分修改成你的实际网站根目录转载于:https://www.cnblogs.com/IT-Crowd/p/10626549.html

linux虚拟光驱挂载方法,Linux操作系统下虚拟光驱(iso)的挂载

1、挂载iso文件一般查看iso文件内容,只需要:#mount -t iso9660 -o loop xxx.iso /mnt/cdrom就可以在/mnt/cdrom下看到xxx.iso的内容。2、复制光盘为iso镜像#dd if/dev/hdb ofxxx.iso或者#cp /dev/cdrom xxx.iso3、虚拟iso为设备#rm -rf /dev/cdrom //删除…

[深度概念]·K-Fold 交叉验证 (Cross-Validation)的理解与应用

个人主页--> xiaosongshine.github.io/ 1.K-Fold 交叉验证概念在机器学习建模过程中,通行的做法通常是将数据分为训练集和测试集。测试集是与训练独立的数据,完全不参与训练,用于最终模型的评估。在训练过程中,经常会出现过拟合…

linux mariadb 升级,linux mariadb

linux mariadb转载 一 安装下载mariaDB MariaDB-5.5.29-rhel5-x86_64-common.rpm 和MariaDB-5.5.29-rhel5-x86_64-server.rpm 包,MariaDB-5.5.29-rhel5-x86_64-client.rpm2.然后再http.//yum。mariadb。org/ 找到 RPM-GPG-KEY-MariaDB 这个PGP文件,把文件放入到/etc…

Linux Note

日期:2019/3/31 内容:Linux学习笔记 一、Linux命令 ls -l 操作效果 第一列:文件权限 一共10位。 01(r)2(w)3(x)4(r)5(w)6(x)7(r)8(w)9(x)文件类型文件所有者权限 usr权限,u权限文件所有者所属组成员的权限 group权限,g…

linux查看usb鼠标是否启动,Linux USB鼠标驱动注解及测试

参考2.6.14版本中的driver/usb/input/usbmouse.c。鼠标驱动可分为多个部分:驱动加载部分、probe部分、open部分、urb回调函数处理部分。下文阴影部分为注解。一、 驱动加载部分static int __init usb_mouse_init(void){int retval usb_register(&usb_mouse_…

退役前的最后的做题记录upd:2019.04.04

考试考到自闭&#xff0c;每天被吊打。 还有几天可能就要AFO了呢。。。 Luogu3602&#xff1a;Koishi Loves Segments 从左向右&#xff0c;每次删除右端点最大的即可。 [HEOI2014]南园满地堆轻絮 答案一定是 \(\lceil \frac{max_{1\le i < j \le n}(a_i-a_j)}{2} \rceil\)。…

linux ssh-add,linux – 如何使ssh-add从文件读取密码?

根据您的发行版本和ssh-add的版本,您可以使用或不使用以这种方式从stdin读取密码的ssh-add的-p选项&#xff1a;cat passfile | ssh-add -p keyfile如果这不工作,您可以使用Expect,Unix工具使交互式应用程序非互动.你必须从你的包管理器安装它.我为你准备了一个工具.只需将内容…

linux nginx F配置,linux下nginx的安装及配置

1、安装nginx前&#xff0c;咱们首先要确保系统安装了g、gcc、openssl-devel、pcre-devel和zlib-devel软件&#xff0c;可经过如图所示命令进行检测,若是以安装咱们能够经过图二所示卸载&#xff1a;linuxyum install gcc-cyum -y install zlib zlib-devel openssl openssl--de…

你缺啥,你缺一个得力的办公软件

其实你缺啥我都知道&#xff0c;但是&#xff0c;我又不能给你发工资&#xff0c;还得你自己努力工作才行。不过我可以给你分享几款好用的办公软件&#xff0c;对你在进行有效率的办公会有很大帮助的。曲奇办公是一款以文档为载体的企业办公管理应用。帮助企业快速实现业务标准…

C语言做一个表格的程序,用C语言画个简单表格

今天见到个题目&#xff0c;就把他做了&#xff0c;题目如下&#xff1a;在图形环境中很容易做出漂亮的表格。但在控制台环境中就比较困难了。有的时候可以用一些符号大略地模拟&#xff1a;(word文档中可能不整齐&#xff0c;拷贝到记事本中看)-------------|abc |xyztt|…

深度学习框架PyTorch一书的学习-第四章-神经网络工具箱nn

参考https://github.com/chenyuntc/pytorch-book/tree/v1.0 希望大家直接到上面的网址去查看代码&#xff0c;下面是本人的笔记 本章介绍的nn模块是构建与autograd之上的神经网络模块 除了nn外还会介绍神经网络中常用的工具&#xff0c;比如优化器optim、初始化init等 1.nn.Mod…

高级语言程序设计c 华南理工,华南理工大学高级语言程序设计(C)期末练习题

.. 《高级语言程序设计(C)》练习题一&#xff0e;单项选择题1.用C语言编制的源程序要变为目标程序必须要经过( )。(a) 解释(b) 汇编(c) 编辑(d) 编译2. 执行C程序时出现的“溢出”错误属于( )错误。(a) 编译(b) 连接(c) 运行(d) 逻辑3. 按C标识符的语法规定&#xff0c;合法的标…

bevfusion 学习笔记

目录 tensorrt ros部署&#xff1a; 也依赖ros2 c ros2安装指导&#xff1a; 相机标定工具源码&#xff1a; 官方github&#xff0c;部分模型开源 tensorrt ros部署&#xff1a; https://github.com/linClubs/BEVFusion-ROS-TensorRT 也依赖ros2 c GitHub - newintelli…

地铁售票系统设计思想及部分代码

设计思想&#xff1a;地铁售票系统的关键点在于换乘&#xff0c;所以首先要分为换乘和不换乘两种情况。不换乘比较简单&#xff0c;通过起始站名和终点站名查询他们的num&#xff0c;然后list打包输出到jsp就可以。换乘的话就先要找到两条线路&#xff0c;找到两条线路的交点也…

数字带通滤波器c语言程序,C语言编写FIR数字低通滤波器

主要是获取滤波器参数和卷积算法&#xff0c;参数根据自己的滤波器特性用matlab上面的一个fdatool工具配置生成&#xff0c;然后将这些参数写入程序里面即可(参数可适当的乘以一个系数&#xff0c;对滤波没任何影响)&#xff0c;我这里Fs 2k&#xff0c;Fpass 1k,Fstop 2k&am…

浏览器拦截跨域请求处理方法(已阻止跨源请求:同源策略禁止读取远程资源)

原文地址&#xff1a;http://my.oschina.net/lichaoqiang/blog/317823 在浏览器请求中&#xff0c;出现跨域访问资源的问题&#xff0c;我们肯定会遇到。如果跨域请求被阻止&#xff0c;有可能导致css、js 、ajax请求、font字体等资源出现无法正常访问的问题。接下来&#xff0…

C程序设计语言上机13,《高级语言程序设计》北大上机试题(十三)

C语言上机试题&#xff1a;131&#xff0e;题目&#xff1a;编一C程序&#xff0c;其功能是能把读入一串英文单词(以单词end做为结束标记&#xff0c;单个单词字母数≤20)&#xff0c;并按字典顺序输出。(注&#xff1a;可执行程序命名为e13_1.exe)程序设计&#xff1a;#includ…

Activiti6.0 java项目框架 spring5 SSM 工作流引擎 审批流程

即时通讯&#xff1a;支持好友&#xff0c;群组&#xff0c;发图片、文件&#xff0c;消息声音提醒&#xff0c;离线消息&#xff0c;保留聊天记录 &#xff08;即时聊天功能支持手机端&#xff0c;详情下面有截图&#xff09;工作流模块-------------------------------------…

c语言变量强制转换,C语言——“=”中的强制类型转换

前言&#xff1a;在写程序时候遇到了一些关于数据类型转换的问题&#xff0c;编译器也没有报错&#xff0c;运行时才发现数据不对&#xff0c;找bug花费了很多时间&#xff0c;但最终也发现是一些细节上的问题&#xff0c;特地在这里整理出一篇文章记录。实验环境&#xff1a;芯…