【问题标题】:Is it possible to install postgresql 11 on Ubuntu 14.04?是否可以在 Ubuntu 14.04 上安装 postgresql 11?
【发布时间】:2019-06-25 14:06:22
【问题描述】:

我在 Ubuntu 14,04 ('trusty') 上运行,无法升级(复杂的网站管理平台依赖于它),但我想并行安装最新版本的 postgresql ...是否有任何兼容性问题?

【问题讨论】:

    标签: postgresql ubuntu ubuntu-14.04 postgresql-11


    【解决方案1】:

    是的,我刚才试过了,我按照这里的指南: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
    

    【讨论】:

      猜你喜欢
      • 2016-04-03
      • 2014-07-24
      • 2015-01-30
      • 2014-12-29
      • 2014-11-22
      • 2017-05-21
      • 1970-01-01
      • 2015-05-31
      • 2015-08-09
      相关资源
      最近更新 更多