Linux(Ubuntu) 安装PostgreSQL

用PostgreSQL替代MySql

\r\nsudo sh -c "echo \"deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main\" > /etc/apt/sources.list.d/pgdg.list"\r\nwget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -\r\nsudo apt-get update\r\nsudo apt-get -y install postgresql\r\n