- 配置网络
CentOS-7安装完成后没有打开网络连接,可以更改配置文件打开。
查看本机ip,找到ensXX
打开配文件/etc/sysconfig/network-scripts/ifcfg-ens33,更改内容如下,退出编辑esc保存:w退出:q
如果不想配置静态ip。可以只更改ONBOOT=yes,便可以结束
打开配置文件/etc/resolv.conf,输入如下,保存退出
然后重启网络service network restart
注意,在vmware中,菜单选择,编辑,虚拟网络编辑器,便可以结束了
将系统别名,在etc/hosts中修改
安装wget:yum -y install wget
换源,解决wget下载速度慢 :
备份:mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
下载最新的CentOS-Base.repo 到 /etc/yum.repos.d/
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清除缓存
$ yum clean all
$ yum list
使用secureCRT上传文件alt+p打开传输窗口,put path上传文件
关闭防火墙
查看防火墙状态 firewall-cmd --state
停止firewall :systemctl stop firewalld.service
禁止firewall开机启动: systemctl disable firewalld.service