VM environment installed Linux systems

1. Environmental dependent

Selected for the operating system: CentOS 6.5 64 bit

2. Select Software

vmWare12 virtual machine, CentOS-6.5-x86_64-bin-DVD1.iso (image file to download, address: http: //archive.kernel.org/centos-vault/6.5/isos/x86_64/)

3. Prerequisites

Computer is installed VMWare

4. Install

Open VM Software

1) Click on File -> New Virtual Machine -> Custom -> Next -> installer disk image file (select position after iso download) -> Enter the sub-user account and password (the default root user the password is the same password)

2) -> set the virtual machine name -> Enter the name of the virtual machine, storage space location for linux

Change the name of the virtual machine (VM in order to distinguish), create a virtual machine file storage location change

 

3) -> network type of the mode to use NAT

4) -> select the disk to create a new virtual machine disk

5) -> to finalize the installation (a little longer)

5. Set the virtual machine network

1) network connection:
          Set the local ip address, the virtual machine in the same network segment, to ensure normal communication with the virtual machine

2) Set the virtual machine network adapter in NAT mode

3) Edit toolbar vmware -> Virtual Network Editor

Select VMnet8

(1) is provided in the lower left corner vmnet8 same subnet IP connection with the host network segment, 10 segments are: 192.168.10.0

(2) Click the NAT settings, modify the IP gateway 192.168.10.2

4) virtual machine network

(1) command set, as shown below:

vim /etc/sysconfig/network-scripts/ifcfg-eth0

(2) a graphical interface is provided, as shown below:

5) setup is complete, restart the virtual card

service network restart

6) The above steps are completed, NAT mode virtual machine static IP network may already

of ping www.baidu.com (verification )

6.初始化linux

1)使用root用户登录

2)设置hostname,,名称为master

vim  /etc/sysconfig/network

3)按下Esc 输入 :x 保存退出

4)修改主机名和ip的映射关系

(1) vim  /etc/hosts

5) 关闭虚拟机防火墙

(1)  关闭防火墙   /sbin/service iptables stop;

(2)关闭防火墙开机启动 chkconfig --level 35 iptables off

(3)查看防火墙是否关闭service iptables status

(4)关闭selinux

vim  /etc/selinux/config  (enforcing 修改为disabled)

6)重启虚拟机

        reboot

7.配置免密登录

1)生成秘钥

    ssh-keygen(执行后一路回车)

2)远程免密登录设置

   ssh-copy-id -i master(过程中需要输出密码)

3)测试免密登录是否成功

ssh master

以上就安装完一台空linux(无任何软件在该平台上运行的)

Guess you like

Origin www.cnblogs.com/ku-ku-ku/p/10930606.html