Big data learning Vmware basic configuration

Centos 6 

Permanently modify

This needs to modify the files in the system

vi /etc/sysconfig/network

Modify the / etc / sysconfig / network configuration to permanently modify the host name

Change the value of hostname to what you want

Centos 7

1) Turn on the virtual machine   

1>输入命令     net.ifnames=0  biosdevname=0

2> Enter the username root password ...

3> Click Edit to select the virtual network editor Change settings VMnet8 subnet 192.168.56.0

4> Enter the following command in the virtual machine

ip a   查看2是否有eth0

cd /etc/sysconfig/network-scripts/

vi ifcfg-eth0

BOOTPROTD=static     //点i就能编辑

    DEFRDNS=yes

    PEERDNS=no

    PEERROUTES=yes

    IPV_4....=no

    NAME=eth0

    DEVICE=eth0

    ONBOOT=yes

    IPADDR=192.168.56.11

    NETMASK=255.255.255.0

GATEWAY=192.168.56.2


按esc键,然后shift+:  然后wq!+enter

Ctrl+z+z

5> Turn off the firewall

systemctl disable firewalld

systemctl disable NetworkManager
 查看防火墙状态:  systemctl status firewalld.service
停止防火墙工作:  systemctl stop firewalld.service
永久关闭防火墙: systemctl disable firewalld.service

 

确认SELinux处于关闭状态
vim /etc/sysconfig/selinux

   SELINUX=disabled

6> Set DNS resolution

vi  /etc/resolv.conf

nameserver  192.168.56.2

ping www.baidu.com -c 4


7> Set the host name

  

vim /etc/hostname

   controller

8> Set host name resolution

vim /etc/hosts

修改为以下内容

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

 ::1   localhost localhost.localdomain localhost6 localhost6.localdomain6

 192.168.56.11 controller

192.168.56.21 compute1

9. Modify the hosts on the host-use the domain name to log in to the big data on the back page

打开C:\Windows\System32\drivers\etc
用记事本打开hosts
在最后加上虚拟机中大数据节点的ip映射
192.168.1.3  bigdata3
192.168.1.4  bigdata4
192.168.1.5  bigdata5
192.168.1.6  bigdata6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Published 15 original articles · praised 7 · 10,000+ views

Guess you like

Origin blog.csdn.net/qq_40938267/article/details/89742553