我从备份(backuppc)恢复了 postgres data_dir。当我启动 postgres 时,出现以下错误:
* Starting PostgreSQL 8.4 database server
* Error: could not exec /usr/lib/postgresql/8.4/bin/pg_ctl /usr/lib/postgresql/8.4/bin/pg_ctl start -D /var/lib/postgresql/8.4/main/ -l /var/log/postgresql/postgresql-8.4-main.log -s -o -c config_file="/etc/postgresql/8.4/main/postgresql.conf"
答案1
尝试将数据目录所有者更改为 postgres:
chown -R postgres:postgres /var/lib/postgresql/8.4/main/