CentOS7精简版安装步骤

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
7ssh远程端口配置#nano /etc/ssh/sshd_config