vault backup: 2023-01-12 21:07:26
This commit is contained in:
parent
e4b55280ee
commit
79ca688241
23
.obsidian/workspace.json
vendored
23
.obsidian/workspace.json
vendored
@ -4,18 +4,15 @@
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "8842c89178654d5e",
|
||||
"id": "bd3048da7ced7906",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "ea1bfb1f125294a3",
|
||||
"id": "6971c1675e1bdbb9",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "diff-view",
|
||||
"state": {
|
||||
"file": "logseq/bak/esqlate/2023-01-13T01_15_47.847Z.Desktop.md",
|
||||
"staged": true
|
||||
}
|
||||
"type": "empty",
|
||||
"state": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -150,17 +147,17 @@
|
||||
"command-palette:Open command palette": false
|
||||
}
|
||||
},
|
||||
"active": "ea1bfb1f125294a3",
|
||||
"active": "6971c1675e1bdbb9",
|
||||
"lastOpenFiles": [
|
||||
"pages/Contents.md",
|
||||
"pghero.md",
|
||||
"pgbdager.md",
|
||||
"postgres.md",
|
||||
"journals/2023_01_12.md",
|
||||
"journals/2023_01_09.md",
|
||||
"apache.md",
|
||||
"auth.md",
|
||||
"sql_server/error_handling.sql",
|
||||
"2023-01-09.md",
|
||||
"visidata.md",
|
||||
"webmin.md",
|
||||
"wekan.md",
|
||||
"telnet.md"
|
||||
"2023-01-09.md"
|
||||
]
|
||||
}
|
10
pgbdager.md
10
pgbdager.md
@ -1,5 +1,5 @@
|
||||
creates a file `out.html` by default
|
||||
|
||||
sudo pgbadger --prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h,remote=%r ' //var/log/postgresql/postgresql-2020-02*
|
||||
|
||||
"C:\PostgreSQL\perl5\perl\bin\perl.exe" "C:\PostgreSQL\pgbadger\pgbadger" -o "C:\Users\ptrowbridge\Downloads\pgb.html" "C:\PostgreSQL\data\logs\pg10\postgresql-Mon.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Tue.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Wed.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Thu.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Fri.log"
|
||||
creates a file `out.html` by default
|
||||
|
||||
sudo pgbadger --prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h,remote=%r ' //var/log/postgresql/postgresql-2020-02*
|
||||
|
||||
"C:\PostgreSQL\perl5\perl\bin\perl.exe" "C:\PostgreSQL\pgbadger\pgbadger" -o "C:\Users\ptrowbridge\Downloads\pgb.html" "C:\PostgreSQL\data\logs\pg10\postgresql-Mon.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Tue.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Wed.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Thu.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Fri.log"
|
||||
|
62
pghero.md
62
pghero.md
@ -1,32 +1,32 @@
|
||||
https://github.com/ankane/pghero/blob/master/guides/Linux.md
|
||||
|
||||
get:
|
||||
```
|
||||
wget -qO- https://dl.packager.io/srv/pghero/pghero/key | sudo apt-key add -
|
||||
sudo wget -O /etc/apt/sources.list.d/pghero.list \
|
||||
https://dl.packager.io/srv/pghero/pghero/master/installer/ubuntu/18.04.repo
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install pghero
|
||||
```
|
||||
|
||||
Add your database. (use \ to escape special passw chars)
|
||||
```
|
||||
sudo pghero config:set DATABASE_URL=postgres://user:password@hostname:5432/dbname
|
||||
```
|
||||
|
||||
And optional authentication.
|
||||
```
|
||||
sudo pghero config:set PGHERO_USERNAME=link
|
||||
sudo pghero config:set PGHERO_PASSWORD=hyrule
|
||||
```
|
||||
|
||||
Start the server
|
||||
```
|
||||
sudo pghero config:set PORT=3001
|
||||
sudo pghero config:set RAILS_LOG_TO_STDOUT=disabled
|
||||
sudo pghero scale web=1
|
||||
```
|
||||
|
||||
Confirm it’s running with:
|
||||
|
||||
https://github.com/ankane/pghero/blob/master/guides/Linux.md
|
||||
|
||||
get:
|
||||
```
|
||||
wget -qO- https://dl.packager.io/srv/pghero/pghero/key | sudo apt-key add -
|
||||
sudo wget -O /etc/apt/sources.list.d/pghero.list \
|
||||
https://dl.packager.io/srv/pghero/pghero/master/installer/ubuntu/18.04.repo
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install pghero
|
||||
```
|
||||
|
||||
Add your database. (use \ to escape special passw chars)
|
||||
```
|
||||
sudo pghero config:set DATABASE_URL=postgres://user:password@hostname:5432/dbname
|
||||
```
|
||||
|
||||
And optional authentication.
|
||||
```
|
||||
sudo pghero config:set PGHERO_USERNAME=link
|
||||
sudo pghero config:set PGHERO_PASSWORD=hyrule
|
||||
```
|
||||
|
||||
Start the server
|
||||
```
|
||||
sudo pghero config:set PORT=3001
|
||||
sudo pghero config:set RAILS_LOG_TO_STDOUT=disabled
|
||||
sudo pghero scale web=1
|
||||
```
|
||||
|
||||
Confirm it’s running with:
|
||||
|
||||
`curl -v http://localhost:3001/`
|
Loading…
Reference in New Issue
Block a user