This commit is contained in:
老周部落 2024-03-05 23:53:04 +08:00
parent ddd7ee5f7c
commit e9bc3f2d2c
No known key found for this signature in database
GPG key ID: C72181CD85C6B738

View file

@ -92,13 +92,7 @@ sudo apt install -y -V postgresql-16-pgdg-pgroonga
## Configuration PostgreSQL
1. Execute this to running `psql` as `postgres` user.
```sh
sudo -u postgres psql
```
2. Create Firefish database, user and PGroonga extension.
Create Firefish database, user and PGroonga extension.
```sh
sudo --user=postgres createuser --no-createdb --no-createrole --no-superuser --encrypted --pwprompt firefish
@ -106,8 +100,6 @@ sudo --user=postgres createdb --encoding='UTF8' --owner=firefish firefish_db
sudo --user=postgres psql --command='CREATE EXTENSION pgroonga;' --dbname=firefish_db
```
3. Run `exit` to return.
## Install Redis, Python 3 and build-essential
```sh