| 1 | 安装系统 | Centos.org下载 安装选项允许安装基础管理工具 #nmtui 可快速配置网络和计算机名 |
| 2 | 开启网络 | 修改/etc/sysconfig/network-scripts/ifcfg-ens33 ONBOOT=no ==> Yes :wq 保存 #service network restart #ip addr 查看是否获取到IP #ping www.qq.com |
| 3 | 更换yum源 | 首先备份源文件: #cd /etc/yum.repos.d #mv CentOS-Base.repo CentOS-Base.repo.bk #curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #yum makecache |
| 4 | 安装ifconfig等工具软件 | #yum update -y #yum install -y epel-release nano wget nload net-tools.x86_64 #yum install make gcc curl -y #yum search ifconfig 通过查找相关来安装ifconfig软件 #yum install net-tools.x86_64 #ifconfig |
| 5(可选) | 关闭SELINUX | #nano /etc/selinux/config SELINUX=disabled #sed -i ‘s/=enforcing/=disabled/g’ /etc/sysconfig/selinux #setenforce 0 |
| 6(可选) | 关闭firewalld | #systemctl stop firewalld #systemctl disable firewalld #systemctl disable firewalld.service |
| 7 | ssh远程端口配置 | #nano /etc/ssh/sshd_config |