postgres访问外网控制
2024-08-28 06:30:06
1. sudo apt-get install postgresql #安装psql
2. su passwd postgres #设置postgres账户的密码
3. postgresql.conf 将该文件中的listen_addresses项值设定为
4. pg_hba.conf 该配置文件的host all all 127.0.0.1/32 md5行下添加以下配置
host all all 0.0.0.0/0 md5
5. 以上的配置文件默认安装在 /etc/postgresql/9.4/main 下
6 .
sudo /etc/init.d/postgresql start #启动;
sudo/etc/init.d/postgresql restart #重启;
sudo/etc/init.d/postgresql stop #停止;
sudo/etc/init.d/postgresql status #查看状态;
sudo -u postgres psql #linux 进入pgsql
alter user postgres with password '*****'; #修改用户登录密码
7.查看启动进程项目 在 ubuntu 中都在 /etc/init.d/ 目录下
最新文章
- 整理UIImagePickerController问题
- AOJ 0558 Cheese【BFS】
- 《你必须知道的.NET》书中对OCP(开放封闭)原则的阐述
- Android客户端向服务器端发送数据的流程(1)
- Java实现Tire
- 【面试题】Round A China New Grad Test 2014总结
- mysql的两阶段提交协议
- 简单的异步任务工具——rq 的使用教程
- Java开发中碰到的Map的坑
- angular4.0配置同时使用localhost和本机IP访问项目
- Ubuntu 18.04.1安装Nginx
- 分布式事务 spring 两阶段提交 tcc
- IDEA community + Gradle + Gretty 调试 servlet 应用 + war包部署到tomcat
- MySQL数据库服务器(YUM)安装
- bug7 java.net.BindException: 端口被占用。
- 2018.10.19浪在ACM 集训队第一次测试赛
- Docker安装Zookeeper
- JS部分
- springboot深入学习(五)-----spring data、事务
- 论asp.net out、ref、return
热门文章
- Vue2.0 + ElementUI的+ PageHelper实现的表格分页
- 复习指南(Pascal版)
- Exception in thread ";main"; redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
- C#之多线程
- Android -- 提交数据到服务器,Get Post方式, 异步Http框架提交
- 数据库的ACID特性详解
- 利用Java.util.UUID来生成唯一ID(用来做数据库主键好用)
- Linux查看和剔除当前登录用户
- Oracle Solaris 11.4 GA 版发布,这将是 Solaris 的绝唱
- Runtime.getRuntime.exec();