启动PostgreSQL时:/your_postgresql_install_path/postgresql/bin/pg_ctl -D /your_postgresql_install_path/postgresql/data -l /your_postgresql_install_path/postgresql/data/logfile start
,报错:
2022-10-15 19:25:36.663 CST [16226] LOG: could not bind IPv4 address "0.0.0.0": 地址已在使用
2022-10-15 19:25:36.663 CST [16226] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2022-10-15 19:25:36.663 CST [16226] LOG: listening on IPv6 address "::", port 5432
解决:
运行命令:chown -R postgres:postgres /your_postgresql_install_path/postgresql