作者sean72 (.)
看板Soft_Job
标题[问题] ubuntu db config
时间Sat Feb 25 09:05:43 2017
我在windows里面装了ubuntu 14 VM
ubuntu ip 假设是10.113.52.1
ubuntu防火墙是关闭的
ubuntu 里面装了postgresql (port 5432)
在VM里面我可以连线到 127.0.0.1:5432 or localhost:5432
但是从我的windows 却无法连线到10.113.52.1:5432 (可以ping也可以ssh过去)
我在ubuntu下面用nmap扫一下资讯
127.0.0.1:5432 是开启的
但是 10.113.52.1:5432是关闭的
为什麽我的postgresql没有开启10.113.52.1:5432呢?
我该怎麽开启?
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 207.141.218.17
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Soft_Job/M.1487984747.A.701.html
※ 编辑: sean72 (207.141.218.17), 02/25/2017 09:07:46
1F:推 soheadsome: 10.113.52.1是本机ip还是虚拟网卡取得的ip? 02/25 09:10
2F:→ soheadsome: 如果是本机ip 要设定vm的port forwarding 02/25 09:10
3F:推 Sieg2010: postgresql预设Bind ip为127.0.0.1 02/25 09:49
4F:→ Sieg2010: 你可以改成0.0.0.0 02/25 09:50
5F:推 mijinu: 检查pg_hba.conf设定看看 02/25 13:13
7F:→ cosmic01: s-postgresql-database 02/25 16:30
8F:→ TpBp: 左转linux版~ 02/25 21:37