Added Alpine Linux

This commit is contained in:
NiceDevil
2024-01-03 18:57:27 +01:00
parent 9e69a2561e
commit ed4782d9df

View File

@@ -15,4 +15,24 @@ dnf -y install postgresql16-server postgresql16-contrib
# Set autostart and start PostgreSQL now # Set autostart and start PostgreSQL now
systemctl enable --now postgresql-16 systemctl enable --now postgresql-16
```
# PostgreSQL Installation on AlpineLinux
```javascript
# Install PostgreSQL
apk add postgresql postgresql-client
# Setup/Initialize Database
rc-service postgresql setup
rc-service postgresql start
# Create a User that can create a Database
psql -U postgres
CREATE USER pgUSER WITH PASSWORD 'strongpassword';
ALTER ROLE pgUSER CREATEDB;
\q
# Set autostart and start PostgreSQL now
rc-update add postgresql
``` ```