安装最新版maxkb一直有问题,windows系统,使用Docker Desktop,安装命令使用官方的,提示安装成功了,但是web访问不了,查看日志似乎是数据库权限问题,不知道怎么解决,尝试了好几个电脑都是如此。
日志如下
2025-02-06 09:39:11 The files belonging to this database system will be owned by user "postgres".
2025-02-06 09:39:11 This user must also own the server process.
2025-02-06 09:39:11
2025-02-06 09:39:11 The database cluster will be initialized with locale "en_US.UTF-8".
2025-02-06 09:39:11 The default database encoding has accordingly been set to "UTF8".
2025-02-06 09:39:11 The default text search configuration will be set to "english".
2025-02-06 09:39:11
2025-02-06 09:39:11 Data page checksums are disabled.
2025-02-06 09:39:11
2025-02-06 09:39:11 fixing permissions on existing directory /var/lib/postgresql/data ... ok
2025-02-06 09:39:11 creating subdirectories ... ok
2025-02-06 09:39:11 selecting dynamic shared memory implementation ... posix
2025-02-06 09:39:11 selecting default max_connections ... 20
2025-02-06 09:39:11 selecting default shared_buffers ... 400kB
2025-02-06 09:39:11 selecting default time zone ... Asia/Shanghai
2025-02-06 09:39:12 creating configuration files ... ok
2025-02-06 09:39:12 2025-02-06 09:39:12.038 CST [87] FATAL: data directory "/var/lib/postgresql/data" has invalid permissions
2025-02-06 09:39:12 2025-02-06 09:39:12.038 CST [87] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
2025-02-06 09:39:12 child process exited with exit code 1
2025-02-06 09:39:12 initdb: removing contents of data directory "/var/lib/postgresql/data"
2025-02-06 09:39:21 running bootstrap script ... 127.0.0.1:5432 - no response
2025-02-06 09:39:22 waiting for postgres
2025-02-06 09:39:22 127.0.0.1:5432 - no response
2025-02-06 09:39:23 waiting for postgres
2025-02-06 09:39:23 127.0.0.1:5432 - no response
2025-02-06 09:39:24 waiting for postgres
2025-02-06 09:39:24 127.0.0.1:5432 - no response
2025-02-06 09:39:25 waiting for postgres
2025-02-06 09:39:25 127.0.0.1:5432 - no response
2025-02-06 09:39:26 waiting for postgres
2025-02-06 09:39:26 127.0.0.1:5432 - no response