[root@localhost /]# yum install memcached
http://mirrors.aliyun.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error"
Trying other mirror.
http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; Unknown error"
Trying other mirror.
Solution:
[root@localhost /]# service networt restart
Redirecting to /bin/systemctl restart networt.service
Failed to restart networt.service: Unit not found.
[root@localhost /]# service network restart
Restarting network (via systemctl):
[ OK ]