debian sarge中源码安装postgresql 8.0.1

因为debian sarge中的版本不是最新,就从网上下载了代码,自己安装。
默认是安装到/usr/local/pgsql
然后在source code中找到contrib/startup-script目录,找到linux文件,把其拷贝为/etc/init.d/postgresql文件。
现在就可以自动重新启动postgresql了。


已发布

分类

来自

标签:

评论

《“debian sarge中源码安装postgresql 8.0.1”》 有 1 条评论

  1. wlx 的头像
    wlx

    ./configure
    make
    make install
    adduser postgres
    mkdir /usr/local/pgsql/data
    chown postgres /usr/local/pgsql/data
    su – postgres
    /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

    这是之前的简易安装方法

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注