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/ 目录下

最新文章

  1. 整理UIImagePickerController问题
  2. AOJ 0558 Cheese【BFS】
  3. 《你必须知道的.NET》书中对OCP(开放封闭)原则的阐述
  4. Android客户端向服务器端发送数据的流程(1)
  5. Java实现Tire
  6. 【面试题】Round A China New Grad Test 2014总结
  7. mysql的两阶段提交协议
  8. 简单的异步任务工具——rq 的使用教程
  9. Java开发中碰到的Map的坑
  10. angular4.0配置同时使用localhost和本机IP访问项目
  11. Ubuntu 18.04.1安装Nginx
  12. 分布式事务 spring 两阶段提交 tcc
  13. IDEA community + Gradle + Gretty 调试 servlet 应用 + war包部署到tomcat
  14. MySQL数据库服务器(YUM)安装
  15. bug7 java.net.BindException: 端口被占用。
  16. 2018.10.19浪在ACM 集训队第一次测试赛
  17. Docker安装Zookeeper
  18. JS部分
  19. springboot深入学习(五)-----spring data、事务
  20. 论asp.net out、ref、return

热门文章

  1. Vue2.0 + ElementUI的+ PageHelper实现的表格分页
  2. 复习指南(Pascal版)
  3. Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
  4. C#之多线程
  5. Android -- 提交数据到服务器,Get Post方式, 异步Http框架提交
  6. 数据库的ACID特性详解
  7. 利用Java.util.UUID来生成唯一ID(用来做数据库主键好用)
  8. Linux查看和剔除当前登录用户
  9. Oracle Solaris 11.4 GA 版发布,这将是 Solaris 的绝唱
  10. Runtime.getRuntime.exec();