[sudo] password for linlin: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7fea4e376000 postgres:14.3 "docker-entrypoint.s…" 31 seconds ago Up 30 seconds 0.0.0.0:5532->5432/tcp, :::5532->5432/tcp postgres14.3 11f55a91272d ubuntu "bash" 25 minutes ago Up 25 minutes quizzical_wescoff (failed reverse-i-search)`-it': lsof ^C:6379
root@7fea4e376000:/# su postgres postgres@7fea4e376000:/$ pg_ctl start
postgres@7fea4e376000:/$ pg_ctl start
waiting for server to start....2022-06-02 02:40:07.070 UTC [25] LOG: starting PostgreSQL 14.3 (Debian 14.3-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2022-06-02 02:40:07.070 UTC [25] LOG: listening on IPv4 address "0.0.0.0", port 5432
2022-06-02 02:40:07.070 UTC [25] LOG: listening on IPv6 address "::", port 5432
2022-06-02 02:40:07.071 UTC [25] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2022-06-02 02:40:07.073 UTC [26] LOG: database system was shut down at 2022-06-02 02:38:29 UTC
2022-06-02 02:40:07.076 UTC [25] LOG: database system is ready to accept connections
done
server started
postgres@7fea4e376000:/$ psql psql (14.3 (Debian 14.3-1.pgdg110+1)) Type "help" for help.
postgres=# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
2022-06-02 02:40:32.302 UTC [25] LOG: received fast shutdown request
waiting for server to shut down....2022-06-02 02:40:32.304 UTC [25] LOG: aborting any active transactions
2022-06-02 02:40:32.305 UTC [25] LOG: background worker "logical replication launcher" (PID 32) exited with exit code 1
2022-06-02 02:40:32.305 UTC [27] LOG: shutting down
2022-06-02 02:40:32.314 UTC [25] LOG: database system is shut down
done
server stopped