Wiki

A universe of ideas

User Tools

Site Tools


computer:gentoo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
computer:gentoo [2020-11-18 18:11] – external edit 127.0.0.1computer:gentoo [2021-01-01 20:40] – [PostgreSQL] skrupellos
Line 72: Line 72:
   * Copy config files from ''/etc/postgresql-*/'' to ''/var/lib/postgresql/*/data/'' (they are now symlinked)   * Copy config files from ''/etc/postgresql-*/'' to ''/var/lib/postgresql/*/data/'' (they are now symlinked)
   * Add ''local  all  all  trust'' to ''/etc/postgresql-*/pg_hba.conf'' (it it there by default)   * Add ''local  all  all  trust'' to ''/etc/postgresql-*/pg_hba.conf'' (it it there by default)
 +
 +=== Arch Linux Version ===
 +<code>
 +systemctl stop postgresql
 +systemctl status postgresql
 +
 +cd /var/lib/postgres
 +V=$(cat data/PG_VERSION)
 +mv data data-$V
 +
 +install -d -o postgres -g postgres -m 700 /var/lib/postgres/{data,tmp}
 +cd tmp
 +sudo -u postgres -- initdb --locale en_US.UTF-8 --encoding=UTF8 -D ../data
 +sudo -u postgres -- pg_upgrade -b /opt/pgsql-$V/bin -B /usr/bin -d ../data-$V -D ../data
 +systemctl start postgresql
 +systemctl status postgresql
 +sudo -u postgres ./analyze_new_cluster.sh
 +cd ..
 +rm -R tmp
 +</code>
 ===== Haushalten ===== ===== Haushalten =====
 Konfiguration in ''/etc/portage/'' überprüfen Konfiguration in ''/etc/portage/'' überprüfen
computer/gentoo.txt · Last modified: 2023-03-05 14:01 by skrupellos