1.网卡
[[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens32
显示结果:
TYPE="Ethernet"
BOOTPROTO="static"
NAME="ens32"
DEVICE="ens32"
ONBOOT="yes"
IPADDR="192.168.6.80"
PREFIX="24"
GATEWAY="192.168.6.1"
DNS1="114.114.114.114"
[[email protected] ~]# service network restart
或者
[[email protected] ~]# systemctl restart network.service
2.防火墙
[[email protected] ~]# systemctl disable firewalld.service
3.selinux
[[email protected] ~]# vim /etc/selinux/config
更改内容:将SELINUX=后面的内容改为disabled(需要重启)
4.YUM
[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] ~]# mv CentOS-Base.repo{,.bak}
[[email protected] ~]# vim CentOS-Media.repo
内容如下:
[c7-media]
name=CentOS-$releasever - Media
baseurl=file:///mnt/
gpgcheck=0
enabled=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[[email protected] ~]# mount /dev/sr0 /mnt/
[[email protected] ~]# yum repolist
5.上传文件工具
[[email protected] ~]# rpm -ivh /mnt/Packages/lrzsz-0.12.20-36.el7.x86_64.rpm
[[email protected] ~]# rz -y //验证是否能够上传