Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.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
在Ubuntu 13上配置Postgresql 9.1和PostGIS 2_Ubuntu_Amazon Web Services_Postgis - Fatal编程技术网

在Ubuntu 13上配置Postgresql 9.1和PostGIS 2

在Ubuntu 13上配置Postgresql 9.1和PostGIS 2,ubuntu,amazon-web-services,postgis,Ubuntu,Amazon Web Services,Postgis,在尝试执行命令时,我将在Amazon AWS的Ubuntu13上配置Postgresql 9.1和PostGIS 2: /etc/postgresql/9.1/main/pg_hba.conf 我得到以下错误 /etc/postgresql/9.1/main/pg_hba.conf: Permission denied 我试过了 sudo /etc/postgresql/9.1/main/pg_hba.conf 得到: postgres is not in the sudoers file

在尝试执行命令时,我将在Amazon AWS的Ubuntu13上配置Postgresql 9.1和PostGIS 2:

/etc/postgresql/9.1/main/pg_hba.conf
我得到以下错误

/etc/postgresql/9.1/main/pg_hba.conf: Permission denied
我试过了

sudo /etc/postgresql/9.1/main/pg_hba.conf
得到:

postgres is not in the sudoers file.  This incident will be reported.
因此,我创建了一个用户并将其添加到sudo组中,然后重试,没有sudo,我的权限被拒绝,我得到:

sudo: /etc/postgresql/9.1/main/pg_hba.conf: command not found
但是在尝试ls-a/etc/postgresql/9.1/main时,会出现pg_hba.conf


有什么建议吗?

pg_hba.conf是一个文本文件,必须对其进行编辑,而不是启动,这是上面命令尝试失败的地方。本教程应阅读vi/etc/postgresql/9.1/main/pg_hba。conf@DanielV谢谢你的帮助!继续本教程,我正在运行sudo apt get update命令,并获得大量警告和错误,例如:Errhttp://ppa.launchpad.net raring/main amd64包或:W:无法获取http://ppa.launchpad.net/sharpie/for-science/ubuntu/dists/raring/main/binary-amd64/Packages 404未找到,有什么想法吗?我建议把它变成一个新的问题,因为安装故障排除在这里是离题的。