环境: 系统centos7.6
1 ifconfig
2 ip addr show
3 service
4 cd /etc/sysconfig/network-scripts/
5 ls
6 vi ifcfg-en32
7 ls
8 vim ifcfg-ens33
9 vi ifcfg-ens33
10 service network restart
11 ifconfig
12 ip addr show
13 systemctl stop firewalld
14 systemctl diable firewalld
15 systemctl disable firewalld
16 firewall-cmd --state
17 ping www.baidu.com
18 ls
19 vi ifcfg-ens33
20 service network restart
21 ping www.baidu.com
22 ip addr show
23 cd /etc/sysconfig/network-scripts/ifcfg-ens33
24 cd /etc/sysconfig/network-scripts/
25 ls
26 vi ifcfg-ens33
27 systemctl restart network.service
28 ping www.baidu.com
29 vi ifcfg-ens33
30 um install -y yum-utils device-mapper-persistent-data lvm2
31 yum install -y yum-utils device-mapper-persistent-data lvm2
32 yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
33 yum -y install docker-ce
34 docker -version
35 docker version
36 uname -r
37 uname -a
38 docker version
39 docker info
40 docker version
41 history
44 docker info
45 docker run hello-world
46 docker run -it alpine sh
47 docker images
48 docker run -d nginx
49 docker ps
50 netstat -unltp | grep 80
51 netstat -un | grep 80
52 netstat -lntp | grep 80
53 yum search ifconfig
54 yum install net-tools
55 ls
56 netstat -unltp | grep 80
57 docker run -d -p 80:80 nginx
58 netstat -unltp | grep 80
59 docker ps
60 docker kill 42c79a730720
61 docker ps
62 docker kill fbc4c2a1d5a2
63 docker ps
64 docker run -d -p 80:80 nginx
65 docker ps
66 netstat -unltp | grep 80
67 ipconfig
68 ifconfig
69 docker run -d -p 9200:9200 elasticsearch
70 docker run --help
71 docker run -d -p 9200:9200 elasticsearch
72 curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
73 systemctl restart docker
74 docker info
75 docker run -d -p 9200:9200 elasticsearch
76 docker search elasticsearch
77 docker pull elasticsearch
78 docker pull registry.docker-cn.com/library/elasticsearch
79 docker images
80 docker run -d -p 9200:9200 elasticsearh
81 docker run -d -p 9200:9200 5acf0e8da90b
82 docker ps
83 docker run -d -p 80:80 nginx
84 docker ps
85 history
docker run -it alpine sh
docker images
docker info
docker run -d -p 80:80 nginx
docker ps
docker run -d -p 9200:9200 elasticsearch //不好使
使用 Docker 中国官方镜像加速
[root@VM_0_4_centos ~]# docker pull registry.docker-cn.com/library/elasticsearch //这个好使