ビッグデータラーニングVMware基本構成

Centos 6 

永久に変更

これは、システム内のファイルを変更する必要があります

vi / etc / sysconfig / network

/ etc / sysconfig /ネットワーク構成を変更して、ホスト名を永続的に変更します

ホスト名の値を必要なものに変更します

Centos 7

1)仮想マシンをオンにする   

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

2> ユーザー名rootパスワードを入力してください...

3> [編集]をクリックして仮想ネットワークエディターを選択します設定の変更VMnet8サブネット192.168.56.0

4>仮想マシンで次のコマンドを入力します

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>ファイアウォールをオフにする

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> DNS解決を設定する

vi  /etc/resolv.conf

nameserver  192.168.56.2

ping www.baidu.com -c 4


7>ホスト名を設定する

  

vim /etc/hostname

   controller

8>ホスト名解決を設定する

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.ホスト上のホストを変更します。ドメイン名を使用して、バックページのビッグデータにログインします。

打开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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

元の記事を15件公開 賞賛7件 10,000件以上の表示

おすすめ

転載: blog.csdn.net/qq_40938267/article/details/89742553