===== Fluent Bit + PostgreSQL =====
* Ubuntu MATE 22.04 LTS にインストール
=== PostgreSQL インストール ===
* 参考: PostgreSQL を Ubuntu に普通にインストール https://qiita.com/nanbuwks/items/846cf3536a82a2798555
* apt コマンドで PostgreSQL をインストール sudo apt install postgresql postgresql-contrib
* インストールされたか確認。なんか走っている?$ sudo -u postgres psql
could not change directory to "/home/nestdaq": Permission denied
psql (14.11 (Ubuntu 14.11-0ubuntu0.22.04.1))
Type "help" for help.
postgres=# select version();
version
----------------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 14.11 (Ubuntu 14.11-0ubuntu0.22.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit
(1 row)
< q でコマンドプロンプト的なところに戻る >
postgres-# \q
$
* /etc/postgresql/14/main/postgresql.conf を以下のように編集。$ emacs /etc/postgresql/14/main/postgresql.conf
# - Connection Settings -
#listen_addresses = 'localhost' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost'; use '*' for \
all
# (change requires restart)
port = 5432 # (change requires restart)
| | |
V V V
# - Connection Settings -
listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost'; use '*' for \
all
# (change requires restart)
port = 5432 # (change requires restart)