【发布时间】:2019-06-25 14:06:22
【问题描述】:
我在 Ubuntu 14,04 ('trusty') 上运行,无法升级(复杂的网站管理平台依赖于它),但我想并行安装最新版本的 postgresql ...是否有任何兼容性问题?
【问题讨论】:
标签: postgresql ubuntu ubuntu-14.04 postgresql-11
我在 Ubuntu 14,04 ('trusty') 上运行,无法升级(复杂的网站管理平台依赖于它),但我想并行安装最新版本的 postgresql ...是否有任何兼容性问题?
【问题讨论】:
标签: postgresql ubuntu ubuntu-14.04 postgresql-11
是的,我刚才试过了,我按照这里的指南:https://gist.github.com/alistairewj/8aaea0261fe4015333ddf8bed5fe91f8
# add postgresql to apt repository
sudo add-apt-repository 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main'
# get the signing key and update
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
# install postgresql
sudo apt-get install postgresql-11
# ensure that the server is started by switching to the postgres user
sudo su - postgres
# I didn't do this part since the database was started during install
# and I checked via `psql`
# /usr/lib/postgresql/11/bin/pg_ctl -D /var/lib/postgresql/11/main -l logfile start
【讨论】: