mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-21 11:51:11 +00:00
Update 02-local-development.md (#215)
I have added some debugging notes that might save some time for an Arch user setting up Postgres. Specifically, sometimes pacman sets up the database cluster incorrectly and some extra bash commands need to be issued before systemctl can start the service.
This commit is contained in:
parent
f5c8c9045e
commit
3ef966df4b
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,11 @@ Arch-based distro:
|
|||
```bash
|
||||
sudo pacman -S postgresql
|
||||
sudo systemctl start postgresql
|
||||
# If the systemctl command errors, then run the following
|
||||
sudo mkdir /var/lib/postgres/data
|
||||
sudo chown postgres:postgres /var/lib/postgres/data
|
||||
sudo -u postgres initdb -D /var/lib/postgres/data
|
||||
sudo systemctl start postgresql
|
||||
```
|
||||
|
||||
macOS:
|
||||
|
|
Loading…
Reference in a new issue