内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

UnixStudy--Solaris10修改主機IP和主-創(chuàng)新互聯(lián)

Unix Study--Solaris 10修改主機IP和主機名

創(chuàng)新互聯(lián)公司是一家專業(yè)提供市中企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站設(shè)計、成都網(wǎng)站設(shè)計、H5建站、小程序制作等業(yè)務(wù)。10年已為市中眾多企業(yè)、政府機構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站設(shè)計公司優(yōu)惠進行中。

  對于Solaris系統(tǒng),是通過一系列配置文件(文本)來存儲和管理主機ip和主機名信息,通過編輯器修改這些配置文件就可以完成相關(guān)的配置。

一、修改主機ip

1、配置hosts文件

[root@solaris186:/]# cat /etc/hosts # Internet host table ::1     localhost        127.0.0.1       localhost        192.168.8.11    solaris186      loghost [root@solaris186:/]# hostname solaris186 [root@solaris186:/]# vi /etc/hosts # Internet host table # ::1     localhost 127.0.0.1       localhost 192.168.8.11    node1   loghost

2、查看網(wǎng)卡信息

[root@solaris186:/]# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1         inet 127.0.0.1 netmask ff000000  e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2         inet 192.168.8.11 netmask ffffff00 broadcast 192.168.8.255         ether 8:0:27:28:b1:8c

3、修改hostname.e1000g0

[root@solaris186:/]# cat /etc/hostname.e1000g0  solaris186 [root@solaris186:/]# vi /etc/hostname.e1000g0   node1 [root@solaris186:/]# cat /etc/hostname.e1000g0  node1

4、修改netmasks(子網(wǎng)掩碼)

[root@solaris186:/]# cat /etc/netmasks # # The netmasks file associates Internet Protocol (IP) address # masks with IP network numbers. #  #       network-number  netmask # # The term network-number refers to a number obtained from the Internet Network # Information Center. # # Both the network-number and the netmasks are specified in # "decimal dot" notation, e.g: # #               128.32.0.0 255.255.255.0 # 192.168.8.0     255.255.255.0

5、修改網(wǎng)關(guān)配置

[root@solaris186:/]# vi /etc/defaultrouter 192.168.8.1 [root@solaris186:/]# cat /etc/defaultrouter  192.168.8.1 [root@solaris186:/]# netstat -nr Routing Table: IPv4   Destination           Gateway           Flags  Ref     Use     Interface  -------------------- -------------------- ----- ----- ---------- ---------  192.168.8.0          192.168.8.11         U         1          1 e1000g0    224.0.0.0            192.168.8.11         U         1          0 e1000g0    127.0.0.1            127.0.0.1            UH        1         50 lo0

 總結(jié):

和主機ip有關(guān)的配置文件

/etc/hosts

/etc/hostname.xxxx(網(wǎng)卡名)

/etc/netmaks

/etc/defaultrouter

/etc/inet/ipnodes

二、修改主機名

1、配置hosts文件

[root@solaris186:/]# cat /etc/hosts # Internet host table ::1     localhost        127.0.0.1       localhost        192.168.8.11    node1      loghost

2、修改hostname.e1000g0

[root@solaris186:/]# cat /etc/hostname.e1000g0  solaris186 [root@solaris186:/]# vi /etc/hostname.e1000g0   node1 [root@solaris186:/]# cat /etc/hostname.e1000g0  node1

3、修改nodename

[root@solaris186:/]# cat /etc/nodename solaris186 [root@solaris186:/]# vi /etc/nodename node1 [root@solaris186:/]# cat /etc/nodename node1

4、查看ipnodes

[root@solaris186:/]# cat /etc/inet/ipnodes  # # Internet host table # ::1     localhost        127.0.0.1       localhost        192.168.8.11    node1   loghost

總結(jié):

和主機名有關(guān)的配置文件

/etc/hosts

/etc/hostname.xxxx(網(wǎng)卡名)

/etc/nodename

/etc/inet/ipnodes

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

網(wǎng)站題目:UnixStudy--Solaris10修改主機IP和主-創(chuàng)新互聯(lián)
網(wǎng)址分享:http://www.rwnh.cn/article16/ccehdg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供響應(yīng)式網(wǎng)站網(wǎng)站導(dǎo)航、網(wǎng)站設(shè)計公司小程序開發(fā)、App設(shè)計網(wǎng)頁設(shè)計公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

綿陽服務(wù)器托管
改则县| 永川市| 长宁区| 友谊县| 德庆县| 喀喇沁旗| 龙游县| 新余市| 于都县| 仪陇县| 浦北县| 溧阳市| 蒙城县| 榆树市| 新蔡县| 大方县| 岑溪市| 阳江市| 连州市| 红河县| 修水县| 怀集县| 鸡西市| 新巴尔虎左旗| 枣阳市| 虹口区| 桦甸市| 永福县| 古蔺县| 彭泽县| 南岸区| 安岳县| 文水县| 定陶县| 韶关市| 海南省| 萍乡市| 汽车| 宁都县| 绵阳市| 东乌珠穆沁旗|