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.pswp.cn/news/536601.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/536601.shtml
英文地址,請注明出處:http://en.pswp.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;芯…