gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
2.7KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>16.1. Short Version</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="installation.html" title="Chapter 16. Installation from Source Code" /><link rel="next" href="install-requirements.html" title="16.2. Requirements" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">16.1. Short Version</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="installation.html" title="Chapter 16. Installation from Source Code">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="installation.html" title="Chapter 16. Installation from Source Code">Up</a></td><th width="60%" align="center">Chapter 16. Installation from Source Code</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 12.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="install-requirements.html" title="16.2. Requirements">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="INSTALL-SHORT"><div class="titlepage"><div><div><h2 class="title" style="clear: both">16.1. Short Version</h2></div></div></div><p>
  3. </p><pre class="synopsis">
  4. ./configure
  5. make
  6. su
  7. make install
  8. adduser postgres
  9. mkdir /usr/local/pgsql/data
  10. chown postgres /usr/local/pgsql/data
  11. su - postgres
  12. /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
  13. /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start
  14. /usr/local/pgsql/bin/createdb test
  15. /usr/local/pgsql/bin/psql test
  16. </pre><p>
  17. The long version is the rest of this
  18. <span class="phrase">chapter</span>.
  19. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="installation.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="installation.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="install-requirements.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 16. Installation from Source Code </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 16.2. Requirements</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1