Ubuntu 11.04 安裝 PostgreSQL 9.1

來源:互聯網
上載者:User
Ubuntu 11.04 安裝 PostgreSQL 9.11) 下載 PostgreSQL 9.1 的Ubuntu deb包:http://www.openscg.org/se/postgresql/packages.jsp   我下載的是 9.1.1-1.amd64.openscg.deb
2) 安裝過程記錄 $ sudo dpkg -i postgres_9.1.1-1.amd64.openscg.deb Selecting previously deselected package postgres91.(Reading database ... 56822 files and directories currently installed.)Unpacking postgres91 (from postgres_9.1.1-1.amd64.openscg.deb) ...Setting up postgres91 (9.1.1-1) ...PostgreSQL 9.1 is now installed in /opt/postgres/9.1.
To initialize, sudo /etc/init.d/postgres-9.1-openscg startdragon@usvm1104:~$ sudo /etc/init.d/postgres-9.1-openscg startPostgreSQL 9.1 Configuration---------------------------------This will initialize PostgreSQL database cluster. The followingquestions will determine the database server port, superuser password and to start server on system boot. Press <ENTER> to accept defaults.
Specify PostgreSQL server  port [5432]: Specify superuser  password [password]: Do you want PostgreSQL server to be started on boot (y/n) [y]: useradd: warning: the home directory already exists.Not copying any file from skel directory into it.The files belonging to this database system will be owned by user "postgres".This user must also own the server process.
The database cluster will be initialized with locale C.The default text search configuration will be set to "english".
fixing permissions on existing directory /opt/postgres/9.1/data ... okcreating subdirectories ... okselecting default max_connections ... 100selecting default shared_buffers ... 24MBcreating configuration files ... okcreating template1 database in /opt/postgres/9.1/data/base/1 ... okinitializing pg_authid ... oksetting password ... okinitializing dependencies ... okcreating system views ... okloading system objects' descriptions ... okcreating collations ... locale: Cannot set LC_MESSAGES to default locale: No such file or directoryokcreating conversions ... okcreating dictionaries ... oksetting privileges on built-in objects ... okcreating information schema ... okloading PL/pgSQL server-side language ... okvacuuming database template1 ... okcopying template1 to template0 ... okcopying template1 to postgres ... ok
Success. You can now start the database server using:
    /opt/postgres/9.1/bin/postgres -D /opt/postgres/9.1/dataor    /opt/postgres/9.1/bin/pg_ctl -D /opt/postgres/9.1/data -l logfile start
Configuring PostgreSQL server startup scriptsperl: warning: Setting locale failed.perl: warning: Please check that your locale settings:        LANGUAGE = "en_US:en",        LC_ALL = (unset),        LANG = "en_US.UTF-8 UTF-8"    are supported and installed on your system.perl: warning: Falling back to the standard locale ("C"). Adding system startup for /etc/init.d/postgres-9.1-openscg ...   /etc/rc0.d/K15postgres-9.1-openscg -> ../init.d/postgres-9.1-openscg   /etc/rc1.d/K15postgres-9.1-openscg -> ../init.d/postgres-9.1-openscg   /etc/rc6.d/K15postgres-9.1-openscg -> ../init.d/postgres-9.1-openscg   /etc/rc2.d/S85postgres-9.1-openscg -> ../init.d/postgres-9.1-openscg   /etc/rc3.d/S85postgres-9.1-openscg -> ../init.d/postgres-9.1-openscg   /etc/rc4.d/S85postgres-9.1-openscg -> ../init.d/postgres-9.1-openscg   /etc/rc5.d/S85postgres-9.1-openscg -> ../init.d/postgres-9.1-openscgStarting PostgreSQL 9.1: waiting for server to start.... doneserver startedPostgreSQL 9.1 started successfullyTo load this postgres into your environment, source the env file:. /opt/postgres/9.1/pg91-openscg.env$ 
參考:http://wiki.ubuntu.org.cn/PostgreSQLPostgres 9.1 DEB 安裝字元集支援一些PostgreSQL的操作

   

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.