Hadoop (two) and clone virtual machine network ping ·

Because it involves the Linux vi editor, so I simply review next door vi.

(1) Command Mode: This mode can be moved to move the cursor in the text, copy, delete the row operation.

(2) the edit mode (Insert Mode): This mode is the edit mode can be entered in the text in this mode, since vi editor defaults to command mode, you enter edit mode requires keyboard to type the letter "i" enters Edit mode. Keyboard Type "Esc" to exit this mode represents the command mode.   

(3) line mode (Last Line Mode): In the command-line mode ":" a colon, followed by line mode to enter the input "WQ" Enter to save and exit, where w represents the writing, q quit. 

A Dian

1. Configure virtual machine network 

(1) network setup is complete, start the virtual host. Enter the username: root, log on CentOS.

 

 (2) shut down the system and turn off the firewall from the system startup, the following command input terminal is closed firewall virtual machine, while closing SELinux service.

# Closed "system firewall" command

systemctl stop firewalld.service

# Closed "system firewall" command from the start

systemctl disable firewalld.service

# Close the "SELinux" service command

setenforce 0

# Close the "SELinux" system since the launch of the service system

vi /etc/selinux/config

# Modify the content SELINUX = disabled 

Open CentOS network interface profile (required vary according to the actual situation of the network computer configuration file, said document fails to be input to "vi / etc / sysconfig / network-scripts /" Tab key using the keypad configuration file to find the network) ,

 

 Content

 

 BOOTPROTO=static    IPADDR=192.168.1.101    NETMASK=255.255.255.0     GATEWAY=192.168.1.1      ONBOOT=yes 

2. Configure virtual machine outside the network

# Edit network file

vi /etc/sysconfig/network   

# Add content

NETWORKING=yes

HOSTNAME=master 

# Edit resolv.conf file

we /etc/resolv.conf 

# Resolv.conf file content (8.8.8.8 DNS server provided by Google, DNS server can be configured according to the actual situation of local network

nameserver 192.168.1.1

nameserver 8.8.8.8

nameserver 8.8.8.4 

# Editor restart the virtual NIC

service network restart 

Verify whether the configuration input on the virtual host ping 192.168.1.151 (IP host address of the host, the replacement of the actual situation)

 

 two,

  

 

 This completes the clone virtual machine.

 

Guess you like

Origin www.cnblogs.com/dxl1581/p/11566715.html