mirror of
https://github.com/TrentSPalmer/trentdocs_website.git
synced 2025-08-01 21:43:57 -07:00
expand docs/arch_postgresql_nspawn.md
This commit is contained in:
@@ -111,7 +111,26 @@
|
||||
<div class="section">
|
||||
|
||||
<h1 id="quick-dirty-postgresql-nspawn-container-on-arch-linux">Quick Dirty Postgresql Nspawn Container on Arch Linux</h1>
|
||||
<p>Refer to the <a href="../nspawn/">Nspawn</a> page for setting up the nspawn container.</p>
|
||||
<p>Refer to the <a href="../nspawn/">Nspawn</a> page for setting up the nspawn container.<br />
|
||||
And then refer the <a href="https://wiki.archlinux.org/index.php/PostgreSQL">ArchWiki instructions</a>
|
||||
for postgresql. </p>
|
||||
<p>You'll want to install postgresql, set a password for the default user <code>postgres</code>,
|
||||
and then login as postgres and initilize the database. </p>
|
||||
<pre><code class="bash">pacman -S postgresql
|
||||
# passwd for postgresql user
|
||||
passwd postgres
|
||||
# login as postgres
|
||||
su -l postgres
|
||||
# initialize the databse cluster
|
||||
[postgres]$ initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'
|
||||
</code></pre>
|
||||
|
||||
<p>You'll need to configure <code>/var/lib/postgres/data/pg_hba.conf</code> and
|
||||
<code>/var/lib/postgres/data/postgresql.conf</code> for remote access,
|
||||
presumably with an identd daemon in mind. The ident daemon will
|
||||
listen on port 113, not on the machine with the database server,
|
||||
but it listens from the machine where is the client that remotely
|
||||
wants to access the database.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user