Hello!
On Tue, May 24, 2016 at 12:41 AM, 项楠 wrote:
> git clone https://github.com/openresty/openresty.org.git
> cd openresty.org/v2
> make gendata
> make initdb
> psql -Uopenresty openresty_org -f init.sql
> psql: FATAL: Peer authentication failed for user "openresty"
> make: *** [initdb] Error 2
>
你没有初始化你的 Pg 数据库。需要使用下面的命令:
$ psql -Upostgres # or "psql postgres", depending on your Pg installation
psql> create user openresty with password 'speedtheweb';
psql> create database openresty_org;
psql> grant all privileges on database openresty_org to openresty;
Regards,
-agentzh