小编Jan*_*ora的帖子

移动 postgresql 数据目录

我按照以下步骤移动了 postgresql 的数据目录:

  1. 停止 postgres
  2. cp -a 源数据目录 目标数据目录
  3. 导出 PGDATA=destination_data_directory
  4. 将 postgresql.conf 中的数据目录更改为destination_data_directory
  5. pg_ctl开始

但是当我运行:“pg_ctl start”时,出现以下错误。有人可以帮我找出错误吗?

服务器启动 postgres@Server:/usr/lib/postgresql/9.1/bin$ postgres 无法访问服务器配置文件“/home/destination_data_directory/postgresql.conf”:没有这样的文件或目录

postgresql linux ubuntu

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

linux ×1

postgresql ×1

ubuntu ×1