In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Modify the host ip
1. Configure hosts
Root@solaris10:/ # cat / etc/hosts
#
# Internet host table
#
:: 1 localhost
127.0.0.1 localhost
172.16.251.130 solaris10 loghost
2. View the network card information
Root@solaris10:/ # ifconfig-a
Lo0: flags=2001000849 mtu 8232 index 1
Inet 127.0.0.1 netmask ff000000
E1000g0: flags=1004843 mtu 1500 index 2
Inet 172.16.251.130 netmask ffffff00 broadcast 172.16.251.255
Ether 0:c:29:44:3b:b9
3. Modify hostname.e1000g0
Root@solaris10:/ # cat / etc/hostname.e1000g0
Solaris10
4. Modify netmask
Root@solaris10:/ # 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
#
172.16.251.0 255.255.255.0
5. Modify gateway information
Root@solaris10:/ # cat / etc/defaultrouter
172.16.251.2
Root@solaris10:/ # netstat-nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
--
Default 172.16.251.2 UG 10 e1000g0
172.16.251.0 172.16.251.130 U 1 2 e1000g0
224.0.0.0 172.16.251.130 U 10 e1000g0
127.0.0.1 127.0.0.1 UH 3 86 lo0
Second, modify the host name
1. Configure hosts
Root@solaris10:/ # cat / etc/hosts
#
# Internet host table
#
:: 1 localhost
127.0.0.1 localhost
172.16.251.130 solaris10 loghost
2. Modify hostname.e1000g0
Root@solaris10:/ # cat / etc/hostname.e1000g0
Solaris10
3. Modify nodename
Root@solaris10:/ # cat / etc/nodename
Solaris10
4. View ipnodes
Root@solaris10:/ # cat / etc/inet/ipnodes
#
# Internet host table
#
:: 1 localhost
127.0.0.1 localhost
172.16.251.130 solaris10 loghost
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.