Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 主厨独奏+博士后。pg_hba.conf中的错误字符_Linux_Postgresql_Ubuntu_Chef Solo - Fatal编程技术网

Linux 主厨独奏+博士后。pg_hba.conf中的错误字符

Linux 主厨独奏+博士后。pg_hba.conf中的错误字符,linux,postgresql,ubuntu,chef-solo,Linux,Postgresql,Ubuntu,Chef Solo,我的pg_hba.conf看起来像: local all postgres ident local all all ident host all all 127.0.0.1/32 md5 host all

我的pg_hba.conf看起来像:

local   all             postgres                                ident

local   all             all                                     ident

host    all             all             127.0.0.1/32            md5

host    all             all             ::1/128                 md5

# "local" is for Unix domain socket connections only
^Atrust
我的流浪汉档案:

# db-server
config.vm.define "db" do |db|
  db.vm.hostname = "db"

  db.vm.provider "virtualbox" do |v|
    v.customize [ "modifyvm", :id, "--cpus", "1" ]
    v.customize [ "modifyvm", :id, "--memory", "512" ]
  end

  db.vm.network "private_network", ip: "192.168.10.11"
  db.vm.provision :chef_solo do |chef|
    chef.json = {
      :postfix => {
        :mailname => "vagrant-ubuntu-trusty-64",
        :main_mailer_type => "Internet Site",
      },
      "postgresql" => {
        "version" => "9.4",
        pg_hba: [
          { type: 'local', db: 'all', user: 'all', addr: '', method: 'trust'}
        ]
      },
    }
    chef.cookbooks_path = "cookbooks"
    chef.add_recipe "apt"
    chef.json = { "apt" => { "compiletime" => true } }
    chef.add_recipe "postgresql"
    chef.add_recipe "postfix"
    chef.add_recipe "test_settings"
  end
end
我试图摆脱对等身份验证,但我的conf文件看起来很奇怪。 我一直得到这个输出:

==> db: 2014-10-22 11:59:31 GMT LOG:  invalid connection type "<unread-symbol>trust"
==> db: 2014-10-22 11:59:31 GMT CONTEXT:  line 24 of configuration file   "/etc/postgresql/9.4/main/pg_hba.conf"
==> db: 2014-10-22 11:59:31 GMT FATAL:  could not load pg_hba.conf
==> db:    ...fail!

为什么我的配置文件中有^A???是什么导致了这种行为?

仅供参考:Postgres-9.4仍处于测试阶段。除非你是开发人员和/或知道自己在做什么,否则不要使用它。@joop我知道。它与我们的Django后端配合得非常好。但我不能在流浪汉身上设置测试环境