Hi,各位大牛:
我在Win10系統下的Virtualbox里裝了個Ubuntu Server,里面裝了Bitnami的Redmine,版本為V4.0.x,還帶了svn服務
我給Ubuntu 掛了兩塊網卡,一塊設為橋接主機網卡,一塊設為host-only,分配到的地址分別是:
host-only:192.168.56.101
橋接網卡:192.168.1.93
現在的問題是,我不能通過host-only網路訪問虛擬機的web服務,提示打不開網頁,Cannot Reached之類的,
但是:
1. 主機能通過host-only網路Ping通虛擬機
2. 主機能通過host-only網路使用虛擬機的svn服務
3. 主機能通過橋接網卡(IP 192.168.1.93)訪問web服務。
請教這是怎么回事?哪里設定有問題?
新手,還請多多指教
uj5u.com熱心網友回復:
自己頂一下,沒有人屑于回答這個問題嗎
uj5u.com熱心網友回復:
看下你的web服務是不是監聽的所有IP,然后看看防火墻關了沒uj5u.com熱心網友回復:
httpd.conf里這樣配置應該是監聽所有IP吧?
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
防火墻應該沒開,而且如果開了防火墻那應該所有的IP都不能訪問啊,對嗎?
uj5u.com熱心網友回復:
是怕你防火墻有針對網卡或者IP的策略,沒開那就排除了你用netstat -nltp看下80埠的狀態
我只想到了這兩種可能。。。
uj5u.com熱心網友回復:
結果是這樣的,能說明啥問題嗎?
swadmin@software-server:~$ sudo netstat -nltp
[sudo] password for swadmin:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nam e
tcp 0 0 127.0.0.1:41839 0.0.0.0:* LISTEN 2378/Passenger Ruby
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2255/httpd.bin
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 4887/systemd-re solv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1176/sshd
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 5150/sshd: swad min@
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 5258/sshd: swad min@
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 2304/.svnserve. bin
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2194/mysqld.bin
tcp6 0 0 :::22 :::* LISTEN 1176/sshd
tcp6 0 0 ::1:6010 :::* LISTEN 5150/sshd: swad min@
tcp6 0 0 ::1:6011 :::* LISTEN 5258/sshd: swad min@
tcp6 0 0 :::443 :::* LISTEN 2255/httpd.bin
uj5u.com熱心網友回復:
80埠沒有問題,是0.0.0.0,監聽所有IP然后,我就真的不知道是什么原因了
uj5u.com熱心網友回復:
Anyway, 謝謝你的熱心!!
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/111795.html
標籤:系統維護與使用區
