vmware下载安装
地址:http://www.zdfans.com/5928.html
centos下载
这里使用阿里云的镜像http://mirrors.aliyun.com/,也可以选择163的镜像http://mirrors.163.com 具体地址:https://mirrors.aliyun.com/centos/7.6.1810/isos/x86_64/ 我选择的是最小版本CentOS-7-x86_64-Minimal-1810.iso 安装过后基本上没什么命令可用,比如vim、wget、ifconfig都没有
安装注意事项
1、虚拟机安装目录 D:\Virtual Machines\201 这个201是虚拟机的名称
2、网络适配器选择桥接模式,不用勾选“复制物理网络连接状态”
配置网络
配置IP地址
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root@localhost ~]# ls
[root@localhost ~]# vi ifcfg-eno173783993
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.201
PREFIX=24
GATEWAY=192.168.1.1
NETMASK=255.255.255.0
DNS1=114.114.114.114
DNS2=8.8.8.8
重启网络服务
[root@localhost ~]# systemctl restart network.service
会把我们设置的DNS1和DNS2写入/etc/resolv.conf文件,所以,如果没在ifcfg-eno173783993中设置DNS, 那么,可以直接在/etc/resolv.conf中设置 nameserver 114.114.114.114 nameserver 8.8.8.8
更新
系统更新
[root@localhost ~]# yum -y update
使用阿里云的yum源
你也可以使用原始的yum源,我就没有修改
修改方法
mirrors.aliyun.com/help/centos…
安装一些必要的工具
ifconfig、wget、vim
yum -y install net-tools wget vim
[root@localhost ~]# yum -y install net-tools wget vim lrzsz
secureCRT文件的上传下载
lrzsz 上传文件 rz 下载文件 sz