1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
| $ vi /etc/sysconfig/network-scripts/ifcfg-xxx $ service network restart $ ip addr
$ firewall-cmd --state $ systemctl stop firewalld.service $ systemctl disable firewalld.service
$ vi /etc/selinux/config SELINUX=enforcing ==> SELINUX=disabled
$ mv /etc/yum.repos.d/CentOs-Base.repo /etc/yum.repos.d/CentOs-Base.repo.bak $ curl -o http://mirrors.aliyun.com/repo/Centos-7.repo $ mv /etc/yum.repos.d/Centos-7.repo /etc/yum.repos.d/CentOs-Base.repo $ yum clean all $ yum makecache $ yum update
$ yum provides ifconfig $ yum whatprovides ifconfig
$ yum install net-tools
$ yum install traceroute
ifconfig ==> ip addr, ip [-s] link ifconfig eth1 up ==> ip l set eth1 up netstat ==> ss [-ltu] traceroute ==> tracepath 192.168.1.1
$ yum install lrzsz $ yum install wget $ yum install tree
yum install packagename yum update packagename yum check-update yum upgrade packagename
yum search string yum remove/erase packagename yum deplist package1
yum clean packages yum clean headers yum clean oldheaders
rpm -qa |grep -i xxx rpm -qi rpm -ql rpm -ivh xxx rpm -Uvh rpm -e xxx
id mysql cat /etc/passwd|grep mysql cat /etc/group|grep mysql
|