Oracle 安裝報錯 [INS-06101] IP address of localhost could not be determined 解決方案

來源:互聯網
上載者:User

出現這種錯誤是因為主機名稱和/etc/hosts 檔案不一致,只需要把主機名稱和其IP 寫入/etc/hosts 檔案,就ok了。

注意名字不能有底線

修改network 檔案之外,再使用hostname 命令指定一下主機名稱,就不用重啟OS了。

 

1.     修改/etc/sysconfig/network 檔案

[root@localhost~]# cat /etc/sysconfig/network

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=shark

 

2.     使用hostname 命令修改主機名稱,該修改重啟會失效,但在第一步我們已經修改過。所以失效也沒關係

[root@localhost ~]# hostname

localhost

[root@localhost ~]# hostname shark

[root@localhost ~]# hostname

dave

 

3.     修改hosts 檔案

 

[root@localhost ~]# cat /etc/hosts

# Do not remove the following line, orvarious programs

# that require network functionality willfail.

127.0.0.1 localhost

192.168.7.2 shark


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.