I have an Ubuntu guest installed on my mac using virtualbox and vagrant. I installed the postgresql 9.3 on ubuntu.
I try to connect it from the host OS. kept getting operation time out. Is the server running on host "11.11.11.18" and accepting TCP/IP connection on port 5432.
i tried following, still not working.
in vagrant file.
ubuntu.vm.network "private_network", ip: "11.11.11.18"
ubuntu.vm.network "forwarded_port", guest: 3306, host: 3306
ubuntu.vm.network "forwarded_port", guest: 5432, host: 5432
pg_hba.conf
host all all 0.0.0.0/0 md5
postgresql.conf
listen_addresses='*'
what else do i need to check?
一旦转发端口-您需要连接到localhost
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.