ubuntu 14.04安装postgresql最新版本
2016-12-24 16:58
513 查看
官网: https://www.postgresql.org/download/linux/ubuntu/
--------------------------------------------------------------------------------------------------------------------
另一篇文章,讲的差不多也是这个:
http://tecadmin.net/install-postgresql-server-on-ubuntu/#
PostgreSQL is an open source object-relational database system. It is one of leading database server used for production servers. PostgreSQL allows us to execute stored procedures in various programming languages, like C/C++, Python, Java, Perl, Ruby and its own PL/pgSQL, which is similar to Oracle’s PL/SQL
This article will help you for installing PostgreSQL database server on your Ubuntu systems.
Now you are logged in to PostgreSQL database server. To check login info use following command from database command prompt.
To disconnect from PostgreSQL database command prompt just type below command and press enter. It will return you back to Ubuntu command prompt.
Your PostgreSQL installation has been completed successfully. Let’s move to phpPgAdmin installation of Ubuntu systems.
--------------------------------------------------------------------------------------------------------------------
另一篇文章,讲的差不多也是这个:
http://tecadmin.net/install-postgresql-server-on-ubuntu/#
PostgreSQL is an open source object-relational database system. It is one of leading database server used for production servers. PostgreSQL allows us to execute stored procedures in various programming languages, like C/C++, Python, Java, Perl, Ruby and its own PL/pgSQL, which is similar to Oracle’s PL/SQL
This article will help you for installing PostgreSQL database server on your Ubuntu systems.
Step 1: Add PostgreSQL Apt Repository
PostgreSQL packages are also available in default Ubuntu repository, But when I try to install PostgreSQL on Ubuntu 12.04 I only found PostgreSQL 9.1 was in default apt repository. So I request you to add PostgreSQL apt repository first in your system suggested on official PostgreSQL website using following command.$ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' $ wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
Step 2: Install PostgreSQL
Now as we have added PostgreSQL official repository in our system, First we need to update repository list. After that install Latest PostgreSQL Server in our Ubuntu system using following commands.$ sudo apt-get update $ sudo apt-get install postgresql postgresql-contrib
Step 3: Connect to PostgreSQL
After installing PostgreSQL database server, by default it creates a user ‘postgres’ with role ‘postgres’. It also creates a system account with same name ‘postgres’. So to connect to postgres server, login to your system as user postgres and connect database.$ sudo su - postgres $ psql
Now you are logged in to PostgreSQL database server. To check login info use following command from database command prompt.
postgres-# \conninfo
To disconnect from PostgreSQL database command prompt just type below command and press enter. It will return you back to Ubuntu command prompt.
postgres-# \q
Your PostgreSQL installation has been completed successfully. Let’s move to phpPgAdmin installation of Ubuntu systems.
相关文章推荐
- ubuntu 上安装最新的postgresql 9.6版本
- Mark-20170824-Ubuntu 14.04 apt-get 安装 Ansible 为非最新版本
- Cloudera Manager安装之利用parcels方式(在线或离线)安装单节点集群(包含最新稳定版本或指定版本的安装)(添加服务)(Ubuntu14.04)(四)
- Linux(ubuntu 14.04)下安装jdk(1.8)以及eclipse 最新版本Neon的安装
- 在Ubuntu 14.04 64bit上安装网易云音乐Linux版本(最新官方版)
- 在Ubuntu 14.04 64bit上安装网易云音乐Linux版本(最新官方版)
- Ubuntu14.04安装MySQL5.7.20(MySQL最新版本)
- Ubuntu 14.04 安装最新版本Nginx
- ubuntu14.04为chrome浏览器安装flash插件(Adobe flash play不是最新版本)
- ubuntu14.04安装最新版本的wine
- ubuntu 14.04强制安装ia32-libs(最新版本)
- Linux(ubuntu 14.04)下安装jdk(1.8)以及eclipse 最新版本Neon的安装
- ubuntu 10.04 编译安装最新版本linux-2.6.34内核
- 如何在Ubuntu上安装Mercurial的最新版本
- Ubuntu下安装最新版本的CMake
- Ubuntu 9.04安装最新版本wine1.1.16
- ubuntu 12.04安装最新版本的nmap出现的几个问题
- 停止提供升级更新的ubuntu安装最新版本的firefox
- ubuntu 10.04 编译安装最新版本linux-2.6.34内核
- Ubuntu 13.04 安装最新版本的Nginx