地址:http://www.zdfans.com/5928.html
php
这里使用阿里云的镜像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都没有
html
[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.8vim
[root@localhost ~]# yum -y update
复制代码
你也能够使用原始的yum源,我就没有修改
centos
mirrors.aliyun.com/help/centos…bash
ifconfig、wget、vim
网络
yum -y install net-tools wget vim
工具
[root@localhost ~]# yum -y install net-tools wget vim lrzsz
复制代码
lrzsz 上传文件 rz 下载文件 sz
阿里云