Linux Virtual Machine installation (CentOS 6.5, detailed text, need to be checked by yourself), linuxcentos
Installation of Linux virtual machines (graphic explanation)
The next article will be followed by the Hadoop cluster installation (based on this)
I. Installation preparation
VMWorkstation and linux system images (the following uses CentOS6.5 as an example)
Ii. Detailed description of the installation process
Disable Firewall:
Service iptables stop
Chkconfig iptables off
Add a fixed ip Address:
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Modify and add:
HWADDR = 00: 0C: 29: 60: 77: 3D (HWaddr corresponding to the local host)
ONBOOT = yes
BOOTPROTO = none
IPADDR = 192.168.83.small (local IP)
(You can view it using ifconfig)
GATEWAY = 192.168.83.2
DNS1 = 8.8.4.4
DNS2 = 222.85.85.85
Save and restart the network.
Service network restart
Note:(How to synchronize system time after installation)
Time Synchronization may affect the use of hadoop clusters and MapReduce in the future.
If the system time is incorrect after installation, run the following command to synchronize the system time:
Ntpdate cn.pool.ntp.org
The NTP socket is in use, exiting solution appears:
Cd/etc/rc. d/init. d
./Ntpd stop
Local ssh Configuration
Go to the. ssh directory/root/. ssh
Delete an existing file
Rm-f *
Ssh-keygen-t rsa
Press enter to the end of the execution
Cat id_rsa.pub> authorized_keys