virtual box centos7 common operation

======= network part =======
1.设置桥接模式

2.vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
BOOTPROTO=static
IPADDR=192.168.1.21
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes

3.vi /etc/resolv.conf
nameserver 4.2.2.2

4.systemctl restart network

5.ip addr

6.curl http://baidu.com

7.vi /etc/hosts
127.0.0.1 localhost
::1 localhost
192.168.1.21 node1
192.168.1.22 node2
192.168.1.23 node3
192.168.1.24 node4

8.vi /etc/hostname
customhostname
reboot

======= jdk part =======
yum install -y java-1.8.0-openjdk-devel

======= scp part =======
scp /opt/spark.tgz root@node1:/opt/

======= tar part =======
tar -zxvf spark.tgz

posted @ 2019-03-08 11:28  多彩泰坦  阅读(137)  评论(0编辑  收藏  举报