2024-06-13 14:36:52 The files belonging to this database system will be owned by user “postgres”.
2024-06-13 14:36:52 This user must also own the server process.
2024-06-13 14:36:52
2024-06-13 14:36:52 The database cluster will be initialized with locale “en_US.UTF-8”.
2024-06-13 14:36:52 The default database encoding has accordingly been set to “UTF8”.
2024-06-13 14:36:52 The default text search configuration will be set to “english”.
2024-06-13 14:36:52
2024-06-13 14:36:52 Data page checksums are disabled.
2024-06-13 14:36:52
2024-06-13 14:36:52 fixing permissions on existing directory /var/lib/postgresql/data … ok
2024-06-13 14:36:52 creating subdirectories … ok
2024-06-13 14:36:52 selecting dynamic shared memory implementation … posix
2024-06-13 14:36:52 selecting default max_connections … 20
2024-06-13 14:36:53 selecting default shared_buffers … 400kB
2024-06-13 14:36:53 selecting default time zone … Asia/Shanghai
2024-06-13 14:36:53 creating configuration files … ok
2024-06-13 14:36:53 2024-06-13 14:36:53.400 CST [85] FATAL: data directory “/var/lib/postgresql/data” has invalid permissions
2024-06-13 14:36:53 2024-06-13 14:36:53.400 CST [85] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
2024-06-13 14:36:53 child process exited with exit code 1
2024-06-13 14:36:53 initdb: removing contents of data directory “/var/lib/postgresql/data”
2024-06-13 14:37:02 running bootstrap script … 127.0.0.1:5432 - no response
至少这里写的说是目标文件夹var/lib/postgresql/data的权限没按要求设置,应该是0700或者0750
哥,求详细一点的指导,我试过改注册表了还是不行。
?,详细说一下这是咋来的报错,啥系统上。怎么还有注册表
你是不是把这个“/var/lib/postgresql/data”映射到本地目录下了?
window系统,我把它部署到本地了,然后无法访问maxkb了,上面就是它的日志,我按照日志去改了data的权限,还是不行。
不映射到本地目录,重启就会资料清空,但是我如果-V后面不加后缀是可以正常运行的。
这题,我会,前几天刚遇到,搞了老半天,网上没一个有用的答案。映射的路径用这种写法试试,docker run -d --name=maxkb -p 8080:8080 -v C:\lf\volume\maxkb:/var/lib/postgresql/data 1panel/maxkb。把“C:\lf\volume\maxkb\”换成你自己的。不一定好使,可以试试