赞
踩
链接:https://pan.baidu.com/s/11regAmVJ1OdQHnHrazmEzg?pwd=r0s9
提取码:r0s9
- xz -d postgrest-v9.0.0.20220531-linux-static-x64.tar.xz
- tar -xvf postgrest-v9.0.0.20220531-linux-static-x64.tar
vi /var/lib/pgsql/10/data/pg_hba.conf
在pg_hba.conf最后一行添加以下配置:
host all all 127.0.0.1/0 md5
systemctl restart postgresql-10.service
- cat > postgrest.conf << EOF
- db-uri = "postgres://postgres:postgres@192.168.0.10:5432/eth"
- db-schema = "public"
- db-anon-role = "postgres"
- server-host = "0.0.0.0"
- server-port = 4000
- EOF
ip地址一定要填外网地址,不能填localhost或者127.0.0.1
vi postgrest.conf
sudo nohup ./postgrest postgrest.conf>./postgrest.log &
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。