• <ul id="mayc0"></ul>
    <ul id="mayc0"><center id="mayc0"></center></ul>
    <strike id="mayc0"><input id="mayc0"></input></strike>
    <ul id="mayc0"></ul>
  • 始創于2000年 股票代碼:831685
    咨詢熱線:0371-60135900 注冊有禮 登錄
    • 掛牌上市企業
    • 60秒人工響應
    • 99.99%連通率
    • 7*24h人工
    • 故障100倍補償
    您的位置: 網站首頁 > 幫助中心>文章內容

    解決Ubuntu 9.10安裝PostgreSQL 8.4不能啟動問題

    發布時間:  2012/8/13 16:22:07

    今天想在Ubuntu 9.10安裝PostgreSQL 8.4學習下,執行完下面命令后

    linuxidc@pentest:~$ sudo apt-get install postgresql-8.4 postgresql-client-8.4 postgresql-contrib-8.4

    返回如下:

    update-alternatives: 使用 /usr/share/postgresql/8.4/man/man1/postmaster.1.gz 來提供 /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz),于 自動模式 中。
    -
     

    * Starting PostgreSQL 8.4 database server                                                 * The PostgreSQL server failed to start. Please check the log output:
    2010-01-25 00:03:24 CST FATAL:  could not create shared memory segment: ?????
    2010-01-25 00:03:24 CST DETAIL:  Failed system call was shmget(key=5433001, size=36880384, 03600).
    2010-01-25 00:03:24 CST HINT:  This error usually means that PostgreSQL’s request for a shared memory segment exceeded your kernel’s SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently 36880384 bytes), reduce PostgreSQL’s shared_buffers parameter (currently 4096) and/or its max_connections parameter (currently 103).
    If the request size is already small, it’s possible that it is less than your kernel’s SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
    The PostgreSQL documentation contains more information about shared memory configuration.
    [fail]
    invoke-rc.d: initscript postgresql-8.4, action “start” failed.
    dpkg:處理 postgresql-8.4 (–configure)時出錯:
    子進程 已安裝的 post-installation 腳本 返回了錯誤號 1
    dpkg:依賴關系問題使得 postgresql-contrib-8.4 的配置工作不能繼續:
    postgresql-contrib-8.4 依賴于 postgresql-8.4;然而:
    軟件包 postgresql-8.4 還沒有被配置。
    dpkg:處理 postgresql-contrib-8.4 (–configure)時出錯:
    依賴關系問題 – 仍未被配置
    沒有寫入 apport 報告,因為錯誤信息指示它是從上一個失敗導致的。
    在處理時有錯誤發生:
    postgresql-8.4
    postgresql-contrib-8.4
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    解決方法很簡單:

    linuxidc@pentest:~$ sudo sysctl -w kernel.shmmax=2147483648
    kernel.shmmax = 2147483648
    linuxidc@pentest:~$ sysctl -a |grep shmmax
    error: permission denied on key ‘kernel.cad_pid’
    kernel.shmmax = 2147483648
    error: permission denied on key ‘fs.binfmt_misc.register’
    error: permission denied on key ‘net.ipv4.route.flush’
    error: permission denied on key ‘net.ipv6.route.flush’
    linuxidc@pentest:~$ sudo /etc/init.d/postgresql-8.4 start
    * Starting PostgreSQL 8.4 database server                                         [ OK ]


    本文出自:億恩科技【www.vbseamall.com】

    服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

  • 您可能在找
  • 億恩北京公司:
  • 經營性ICP/ISP證:京B2-20150015
  • 億恩鄭州公司:
  • 經營性ICP/ISP/IDC證:豫B1.B2-20060070
  • 億恩南昌公司:
  • 經營性ICP/ISP證:贛B2-20080012
  • 服務器/云主機 24小時售后服務電話:0371-60135900
  • 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
  • 專注服務器托管17年
    掃掃關注-微信公眾號
    0371-60135900
    Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權所有  地址:鄭州市高新區翠竹街1號總部企業基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網安備41019702002023號
      1
     
     
     
     

    0371-60135900
    7*24小時客服服務熱線