/etc/host 檔案中的項目不起作用

/etc/host 檔案中的項目不起作用

我在輸入時遇到問題

192.168.32.56 example.org

在 /etc/hosts 檔案中,它不起作用。但是當我刪除它時,它開始工作。下面是我的 Ubuntu 16 的 /etc/hosts 檔案。我還將hosts檔案的權限更改為777,然後它也不起作用。幾天前它還可以工作,但現在停止了。

# BEGIN hosts added by Network Connect
192.0.47.198  access-dc.example.org
# END hosts added by Network Connect
127.0.0.1       localhost
127.0.1.1       icanw42slpc2666

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

# LA 
192.168.32.56  example.org

# DC
#192.168.47.56  example.org

答案1

你們所有人都絕對正確。伺服器的ip已更改。更新新 IP 後,我可以透過瀏覽器 ping 並連線。太感謝了 。

相關內容