Install postgres in my old ubuntu system

Install postgres in my old ubuntu system: 12.04 (precise) (based on the introduction at http://www.postgresql.org/download/linux/ubuntu/)


1, Create a new file at the following location:

cd /etc/apt/sources.list.d/
sudo vi pgdg.list


2, Add this line to above file:

deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main)


3, Execute:

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

sudo apt-get install postgresql-9.4 pgadmin3


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章