1. Use the command to view the centos version
cat / etc / redhat-release version of CentOS View
2. Use the command to modify the host name hostnamectl
[root@xlucas1 ~]# hostnamectl set-hostname xlucas2
3. Use the command to replace the source (problem-solving some packages not installed on)
Backup
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
centos7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
or
-o curl /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
Add EPEL
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
4. openstack instance can not solve the access problem and can not be used Xshell
5.ping blocked IP address can ping but Baidu Baidu's
Modify the configuration file to add the gateway address in the configuration file
vim /etc/resolv.conf
Add servername 8.8.8.8
6.xftp expired winscp is also a good alternative
Learning and heat transfer
of a machine failure can feel free to migrate to another machine