In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to build a Hadoop pseudo-distributed system. I hope you will get something after reading this article. Let's discuss it together.
I.
Network connection mode of virtual machine and static IP setting of Linux
1. Introduction of Network connection Mode
1) Host mode only
The virtual machine is networked separately with the host, and the virtual machine cannot communicate with other machines in the host network because the network segment is different.
2) bridging mode
The virtual machine will use the network segment of the host's network, and other machines on the host's network can communicate with the virtual machine because they are in the same network segment
two。 Configure host-only mode
1) Host-side configuration: when using host-only mode, you need to configure the VMware Network Adapter VMnet1 of the host, which is the IP address and gateway
3) restart the virtual machine network card
[root@localhost Desktop] # service network restart
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface Wired_connection_1: Active connection state: activated
Active connection path: / org/freedesktop/NetworkManager/ActiveConnection/3
[OK]
4) View virtual machine network information
[root@localhost Desktop] # ifconfig
Eth2 Link encap:Ethernet HWaddr 00:50:56:2F:E5:3A
Inet addr:192.168.80.100 Bcast:192.168.80.255 Mask:255.255.255.0
Inet6 addr: fe80::250:56ff:fe2f:e53a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:132 errors:0 dropped:0 overruns:0 frame:0
TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0 txqueuelen:1000
RX bytes:20108 (19.6 KiB) TX bytes:4518 (4.4 KiB)
Interrupt:19 Base address:0x2024
5) use virtual machines to access hosts
[root@localhost Desktop] # ping 192.168.80.1
PING 192.168.80.1 (192.168.80.1) 56 (84) bytes of data.
64 bytes from 192.168.80.1: icmp_seq=1 ttl=64 time=0.468 ms
64 bytes from 192.168.80.1: icmp_seq=2 ttl=64 time=0.277 ms
64 bytes from 192.168.80.1: icmp_seq=3 ttl=64 time=0.316 ms
64 bytes from 192.168.80.1: icmp_seq=4 ttl=64 time=0.279 ms
^ Z
[2] + Stopped ping 192.168.80.1
6) use hosts to access virtual machines
C:\ Users\ thinkpad > ping 192.168.80.100
Ping 192.168.80.100 has 32 bytes of data:
Reply from 192.168.80.100: byte = 32 time = 1ms TTL=64
Reply from 192.168.80.100: bytes = 32 time
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.