5
我與JBoss顛沛流離的流浪箱端口轉發。我試圖轉發兩個端口。我Vagrantfile
已經在爲爲什麼不工作
web.vm.network "forwarded_port", guest: 8080, host: 8080 # jboss
web.vm.network "forwarded_port", guest: 9990, host: 9990 # jboss management console
我下面在vagrant up web
可以看到控制檯
==> web: Forwarding ports...
web: 8080 => 8080 (adapter 1)
web: 9990 => 9990 (adapter 1)
當我做netstat
端口似乎是好
$ sudo netstat -tulpn | grep VirtualBox
[sudo] password for ostraaten:
tcp 0 0 0.0.0.0:9990 0.0.0.0:* LISTEN 21241/VirtualBox
tcp 0 0 127.0.0.1:2222 0.0.0.0:* LISTEN 21241/VirtualBox
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 21241/VirtualBox
當我在做curl -v http://localhost:8080
流浪盒本身,這工作正常。我看到了JBoss的東西。
當我做curl -v https://localhost:8080
主機其他的東西發生在。
$ curl -v http://localhost:8080
* Rebuilt URL to: http://localhost:8080/
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET/HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8080
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
在Vagrant框上沒有運行防火牆。在第一
配置爲轉發端口似乎微不足道,但它現在看起來還有更多的東西。這項工作應該如何?
確定防火牆不起作用? – ACV
嘗試更改您的主機端口。可能是你已經有東西了? – ACV
web.vm.network「forwarded_port」,嘉賓:8080,主機:8088#JBoss的 – ACV