启动docker后,先看一下我们有哪些选择。
有官方的当然选择官方啦~
下载:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[root@localhost admin] # docker pull zookeeper
using default tag: latest
trying to pull repository docker.io /library/zookeeper ...
latest: pulling from docker.io /library/zookeeper
1ab2bdfe9778: already exists
7aaf9a088d61: pull complete
80a55c9c9fe8: pull complete
a0086b0e6eec: pull complete
4165e7457cad: pull complete
bcba13bcf3a1: pull complete
41c03a109e47: pull complete
4d5281c6b0d4: pull complete
digest: sha256:175d6bb1471e1e37a48bfa41a9da047c80fade60fd585eae3a0e08a4ce1d39ed
status: downloaded newer image for docker.io /zookeeper :latest
|
查看镜像详情
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
[root@localhost admin] # docker images
repository tag image id created size
192.168.192.128:443 /hello-2 latest 0c24558dd388 42 hours ago 660 mb
192.168.192.128:443 /hello latest a3ba3d430bed 42 hours ago 660 mb
docker.io /nginx latest 5a3221f0137b 13 days ago 126 mb
docker.io /zookeeper latest 3487af26dee9 13 days ago 225 mb
docker.io /registry latest f32a97de94e1 5 months ago 25.8 mb
docker.io /mongo latest 8bf72137439e 12 months ago 380 mb
docker.io /influxdb latest 34de2bdc2d7f 12 months ago 213 mb
docker.io /centos latest 5182e96772bf 12 months ago 200 mb
docker.io /grafana/grafana latest 3e16e05be9a3 13 months ago 245 mb
docker.io /hello-world latest 2cb0d9787c4d 13 months ago 1.85 kb
docker.io /java latest d23bdf5b1b1b 2 years ago 643 mb
[root@localhost admin] # docker inspect 3487af26dee9
[
{
"id" : "sha256:3487af26dee9ef9eacee9a97521bc4f0243bef0b285247258c32f4a03cab92c5" ,
"repotags" : [
"docker.io/zookeeper:latest"
],
"repodigests" : [
"docker.io/zookeeper@sha256:175d6bb1471e1e37a48bfa41a9da047c80fade60fd585eae3a0e08a4ce1d39ed"
],
"parent" : "" ,
"comment" : "" ,
"created" : "2019-08-15t06:10:50.178554969z" ,
"container" : "9a38467115f1952161d6075135d5c5287967282b834cfe68183339c810f9652b" ,
"containerconfig" : {
"hostname" : "9a38467115f1" ,
"domainname" : "" ,
"user" : "" ,
"attachstdin" : false ,
"attachstdout" : false ,
"attachstderr" : false ,
"exposedports" : {
"2181/tcp" : {},
"2888/tcp" : {},
"3888/tcp" : {},
"8080/tcp" : {}
},
"tty" : false ,
"openstdin" : false ,
"stdinonce" : false ,
"env" : [
"path=/usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/apache-zookeeper-3.5.5-bin/bin" ,
"lang=c.utf-8" ,
"java_home=/usr/local/openjdk-8" ,
"java_version=8u222" ,
"java_base_url=https://github.com/adoptopenjdk/openjdk8-upstream-binaries/releases/download/jdk8u222-b10/openjdk8u-jre_" ,
"java_url_version=8u222b10" ,
"zoo_conf_dir=/conf" ,
"zoo_data_dir=/data" ,
"zoo_data_log_dir=/datalog" ,
"zoo_log_dir=/logs" ,
"zoo_tick_time=2000" ,
"zoo_init_limit=5" ,
"zoo_sync_limit=2" ,
"zoo_autopurge_purgeinterval=0" ,
"zoo_autopurge_snapretaincount=3" ,
"zoo_max_client_cnxns=60" ,
"zoo_standalone_enabled=true" ,
"zoo_adminserver_enabled=true" ,
"zoocfgdir=/conf"
],
"cmd" : [
"/bin/sh" ,
"-c" ,
"#(nop) " ,
"cmd [\"zkserver.sh\" \"start-foreground\"]"
],
"argsescaped" : true ,
"image" : "sha256:20bf3cc1bd5b5766b79da5265e94007d0802ce241df1636d0f63e211a79a0e3e" ,
"volumes" : {
"/data" : {},
"/datalog" : {},
"/logs" : {}
},
"workingdir" : "/apache-zookeeper-3.5.5-bin" ,
"entrypoint" : [
"/docker-entrypoint.sh"
],
"onbuild" : null,
"labels" : {}
},
"dockerversion" : "18.06.1-ce" ,
"author" : "" ,
"config" : {
"hostname" : "" ,
"domainname" : "" ,
"user" : "" ,
"attachstdin" : false ,
"attachstdout" : false ,
"attachstderr" : false ,
"exposedports" : {
"2181/tcp" : {},
"2888/tcp" : {},
"3888/tcp" : {},
"8080/tcp" : {}
},
"tty" : false ,
"openstdin" : false ,
"stdinonce" : false ,
"env" : [
"path=/usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/apache-zookeeper-3.5.5-bin/bin" ,
"lang=c.utf-8" ,
"java_home=/usr/local/openjdk-8" ,
"java_version=8u222" ,
"java_base_url=https://github.com/adoptopenjdk/openjdk8-upstream-binaries/releases/download/jdk8u222-b10/openjdk8u-jre_" ,
"java_url_version=8u222b10" ,
"zoo_conf_dir=/conf" ,
"zoo_data_dir=/data" ,
"zoo_data_log_dir=/datalog" ,
"zoo_log_dir=/logs" ,
"zoo_tick_time=2000" ,
"zoo_init_limit=5" ,
"zoo_sync_limit=2" ,
"zoo_autopurge_purgeinterval=0" ,
"zoo_autopurge_snapretaincount=3" ,
"zoo_max_client_cnxns=60" ,
"zoo_standalone_enabled=true" ,
"zoo_adminserver_enabled=true" ,
"zoocfgdir=/conf"
],
"cmd" : [
"zkserver.sh" ,
"start-foreground"
],
"argsescaped" : true ,
"image" : "sha256:20bf3cc1bd5b5766b79da5265e94007d0802ce241df1636d0f63e211a79a0e3e" ,
"volumes" : {
"/data" : {},
"/datalog" : {},
"/logs" : {}
},
"workingdir" : "/apache-zookeeper-3.5.5-bin" ,
"entrypoint" : [
"/docker-entrypoint.sh"
],
"onbuild" : null,
"labels" : null
},
"architecture" : "amd64" ,
"os" : "linux" ,
"size" : 225126346,
"virtualsize" : 225126346,
"graphdriver" : {
"name" : "overlay2" ,
"data" : {
"lowerdir" : "/var/lib/docker/overlay2/92185ebf7638a7b34180cfb87795dd758405cbad4fd0139b92a227d1a4b61847/diff:/var/lib/docker/overlay2/8787e91f5c03a7c03cee072019eca49a0402a0a0902be39ed0b5d651a79cce35/diff:/var/lib/docker/overlay2/ce5864ddfa4d1478047aa9fcaa03744e8a4078ebe43b41e7836c96c54c724044/diff:/var/lib/docker/overlay2/fc99437bcfbabb9e8234c06c90d1c60e58c34ac053aff1adc368b7ad3a50c158/diff:/var/lib/docker/overlay2/1779297a8980830229bd4bf58bd741730956d6797332fd07b863a1b48dcb6fa2/diff:/var/lib/docker/overlay2/ee735aa3608d890ac4751dd93581a67cb54a5dd4714081e9d09d0ebd9dbc3501/diff:/var/lib/docker/overlay2/cf6b3cbc42f3c8d1fb09b29db0dafbb4dceb120925970ab8a3871eaa8562414c/diff" ,
"mergeddir" : "/var/lib/docker/overlay2/a7fcc1b78c472cde943f20d1d4495f145308507b5fe3da8800c33dc4ce426156/merged" ,
"upperdir" : "/var/lib/docker/overlay2/a7fcc1b78c472cde943f20d1d4495f145308507b5fe3da8800c33dc4ce426156/diff" ,
"workdir" : "/var/lib/docker/overlay2/a7fcc1b78c472cde943f20d1d4495f145308507b5fe3da8800c33dc4ce426156/work"
}
},
"rootfs" : {
"type" : "layers" ,
"layers" : [
"sha256:1c95c77433e8d7bf0f519c9d8c9ca967e2603f0defbf379130d9a841cca2e28e" ,
"sha256:2bf534399acac9c6b09a0b1d931223808000b04400a749f08187ed9ee435738d" ,
"sha256:eb25e0278d41b9ac637d8cb2e391457cf44ce8d2bfe0646d0c9faefc96413f91" ,
"sha256:e54bd3566d9ef3e1309a5af6caf8682f32c6ac4d6adfcbd3e601cfee4e2e0e85" ,
"sha256:c79435051d529a7b86f5f9fc32e7e2ec401929434e5596f02a2af731f55c9f28" ,
"sha256:76e0d7b2d700e6d17924b985703c7b5b84fb39ddcc0a1181b41217c2a11dffc4" ,
"sha256:eecdc37df6afd77091641588f9639f63b65e8eb141e56529e00da44419c5bd04" ,
"sha256:36e788f2d91a89375df5901f31cca33776f887c00ddfd3cf9f2466fa4cb794d6"
]
}
}
]
|
默认拉取最新的是3.5.x版本,如果你需要3.4.x版本的,要指定标签
单机
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
|
# 最后那个是镜像的id[root@localhost admin]# docker run -d -p 2181:2181 --name some-zookeeper --restart always 3487af26dee9
d5c6f857cd88c342acf63dd58e838a4cdf912daa6c8c0115091147136e819307
[root@localhost admin] # docker ps
container id image command created status ports names
d5c6f857cd88 3487af26dee9 "/docker-entrypoin..." 4 seconds ago up 3 seconds 2888 /tcp , 3888 /tcp , 0.0.0.0:2181->2181 /tcp , 8080 /tcp some-zookeeper
[root@localhost admin] # docker exec -it d5c6f857cd88 bash
root@d5c6f857cd88: /apache-zookeeper-3 .5.5-bin # ./bin/zkcli.sh
connecting to localhost:2181
2019-08-29 07:15:21,623 [myid:] - info [main:environment@109] - client environment:zookeeper.version=3.5.5-390fe37ea45dee01bf87dc1c042b5e3dcce88653, built on 05 /03/2019 12:07 gmt
2019-08-29 07:15:21,679 [myid:] - info [main:environment@109] - client environment:host.name=d5c6f857cd88
2019-08-29 07:15:21,680 [myid:] - info [main:environment@109] - client environment:java.version=1.8.0_222
2019-08-29 07:15:21,717 [myid:] - info [main:environment@109] - client environment:java.vendor=oracle corporation
2019-08-29 07:15:21,718 [myid:] - info [main:environment@109] - client environment:java.home= /usr/local/openjdk-8
2019-08-29 07:15:21,725 [myid:] - info [main:environment@109] - client environment:java.class.path= /apache-zookeeper-3 .5.5-bin /bin/ .. /zookeeper-server/target/classes : /apache-zookeeper-3 .5.5-bin /bin/ .. /build/classes : /apache-zookeeper-3 .5.5-bin /bin/ .. /zookeeper-server/target/lib/ *.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /build/lib/ *.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/zookeeper-jute-3 .5.5.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/zookeeper-3 .5.5.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/slf4j-log4j12-1 .7.25.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/slf4j-api-1 .7.25.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/netty-all-4 .1.29.final.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/log4j-1 .2.17.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/json-simple-1 .1.1.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jline-2 .11.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jetty-util-9 .4.17.v20190418.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jetty-servlet-9 .4.17.v20190418.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jetty-server-9 .4.17.v20190418.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jetty-security-9 .4.17.v20190418.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jetty-io-9 .4.17.v20190418.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jetty-http-9 .4.17.v20190418.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/javax .servlet-api-3.1.0.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jackson-databind-2 .9.8.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jackson-core-2 .9.8.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/jackson-annotations-2 .9.0.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/commons-cli-1 .2.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /lib/audience-annotations-0 .5.0.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /zookeeper- *.jar: /apache-zookeeper-3 .5.5-bin /bin/ .. /zookeeper-server/src/main/resources/lib/ *.jar: /conf :
2019-08-29 07:15:22,108 [myid:] - info [main:environment@109] - client environment:java.library.path= /usr/java/packages/lib/amd64 : /usr/lib64 : /lib64 : /lib : /usr/lib
2019-08-29 07:15:22,109 [myid:] - info [main:environment@109] - client environment:java.io.tmpdir= /tmp
2019-08-29 07:15:22,109 [myid:] - info [main:environment@109] - client environment:java.compiler=<na>
2019-08-29 07:15:22,109 [myid:] - info [main:environment@109] - client environment:os.name=linux
2019-08-29 07:15:22,109 [myid:] - info [main:environment@109] - client environment:os.arch=amd64
2019-08-29 07:15:22,110 [myid:] - info [main:environment@109] - client environment:os.version=3.10.0-862.9.1.el7.x86_64
2019-08-29 07:15:22,110 [myid:] - info [main:environment@109] - client environment:user.name=root
2019-08-29 07:15:22,110 [myid:] - info [main:environment@109] - client environment:user.home= /root
2019-08-29 07:15:22,110 [myid:] - info [main:environment@109] - client environment:user. dir = /apache-zookeeper-3 .5.5-bin
2019-08-29 07:15:22,118 [myid:] - info [main:environment@109] - client environment:os.memory. free =11mb
2019-08-29 07:15:22,148 [myid:] - info [main:environment@109] - client environment:os.memory.max=247mb
2019-08-29 07:15:22,148 [myid:] - info [main:environment@109] - client environment:os.memory.total=15mb
2019-08-29 07:15:22,206 [myid:] - info [main:zookeeper@868] - initiating client connection, connectstring=localhost:2181 sessiontimeout=30000 watcher=org.apache.zookeeper.zookeepermain$mywatcher@3b95a09c
2019-08-29 07:15:22,239 [myid:] - info [main:x509util@79] - setting -d jdk.tls.rejectclientinitiatedrenegotiation= true to disable client-initiated tls renegotiation
2019-08-29 07:15:22,285 [myid:] - info [main:clientcnxnsocket@237] - jute.maxbuffer value is 4194304 bytes
2019-08-29 07:15:22,366 [myid:] - info [main:clientcnxn@1653] - zookeeper.request.timeout value is 0. feature enabled=
welcome to zookeeper!
jline support is enabled
2019-08-29 07:15:22,563 [myid:localhost:2181] - info [main-sendthread(localhost:2181):clientcnxn$sendthread@1112] - opening socket connection to server localhost /0 :0:0:0:0:0:0:1:2181. will not attempt to authenticate using sasl (unknown error)
2019-08-29 07:15:23,443 [myid:localhost:2181] - info [main-sendthread(localhost:2181):clientcnxn$sendthread@959] - socket connection established, initiating session, client: /0 :0:0:0:0:0:0:1:37198, server: localhost /0 :0:0:0:0:0:0:1:2181
2019-08-29 07:15:23,520 [myid:localhost:2181] - info [main-sendthread(localhost:2181):clientcnxn$sendthread@1394] - session establishment complete on server localhost /0 :0:0:0:0:0:0:1:2181, sessionid = 0x10001216d990000, negotiated timeout = 30000
watcher::
watchedevent state:syncconnected type :none path:null
[zk: localhost:2181(connected) 0] ls /
[zookeeper]
[zk: localhost:2181(connected) 1] quit
watcher::
watchedevent state:closed type :none path:null
2019-08-29 07:15:37,042 [myid:] - info [main:zookeeper@1422] - session: 0x10001216d990000 closed
2019-08-29 07:15:37,043 [myid:] - info [main-eventthread:clientcnxn$eventthread@524] - eventthread shut down for session: 0x10001216d990000
root@d5c6f857cd88: /apache-zookeeper-3 .5.5-bin # exit
exit
[root@localhost admin] #
|
在外部访问(192.168.192.128:2181)
集群
环境:单台宿主机(192.168.192.128),启动三个zookeeper容器。
这里涉及一个问题,就是docker容器之间通信的问题,这个很重要!
docker有三种网络模式,bridge、host、none,在你创建容器的时候,不指定--network默认是bridge。
bridge:为每一个容器分配ip,并将容器连接到一个docker0虚拟网桥,通过docker0网桥与宿主机通信。也就是说,此模式下,你不能用宿主机的ip+容器映射端口来进行docker容器之间的通信。
host:容器不会虚拟自己的网卡,配置自己的ip,而是使用宿主机的ip和端口。这样一来,docker容器之间的通信就可以用宿主机的ip+容器映射端口
none:无网络。
=====================================================
先在本地创建目录:
1
2
3
4
5
6
7
8
9
|
[root@localhost admin] # mkdir /usr/local/zookeeper-cluster
[root@localhost admin] # mkdir /usr/local/zookeeper-cluster/node1
[root@localhost admin] # mkdir /usr/local/zookeeper-cluster/node2
[root@localhost admin] # mkdir /usr/local/zookeeper-cluster/node3
[root@localhost admin] # ll /usr/local/zookeeper-cluster/
total 0
drwxr-xr-x. 2 root root 6 aug 28 23:02 node1
drwxr-xr-x. 2 root root 6 aug 28 23:02 node2
drwxr-xr-x. 2 root root 6 aug 28 23:02 node3
|
然后执行命令启动
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
docker run -d -p 2181:2181 -p 2888:2888 -p 3888:3888 --name zookeeper_node1 --privileged --restart always \
- v /usr/local/zookeeper-cluster/node1/volumes/data : /data \
- v /usr/local/zookeeper-cluster/node1/volumes/datalog : /datalog \
- v /usr/local/zookeeper-cluster/node1/volumes/logs : /logs \
-e zoo_my_id=1 \
-e "zoo_servers=server.1=192.168.192.128:2888:3888;2181 server.2=192.168.192.128:2889:3889;2182 server.3=192.168.192.128:2890:3890;2183" 3487af26dee9
docker run -d -p 2182:2181 -p 2889:2888 -p 3889:3888 --name zookeeper_node2 --privileged --restart always \
- v /usr/local/zookeeper-cluster/node2/volumes/data : /data \
- v /usr/local/zookeeper-cluster/node2/volumes/datalog : /datalog \
- v /usr/local/zookeeper-cluster/node2/volumes/logs : /logs \
-e zoo_my_id=2 \
-e "zoo_servers=server.1=192.168.192.128:2888:3888;2181 server.2=192.168.192.128:2889:3889;2182 server.3=192.168.192.128:2890:3890;2183" 3487af26dee9
docker run -d -p 2183:2181 -p 2890:2888 -p 3890:3888 --name zookeeper_node3 --privileged --restart always \
- v /usr/local/zookeeper-cluster/node3/volumes/data : /data \
- v /usr/local/zookeeper-cluster/node3/volumes/datalog : /datalog \
- v /usr/local/zookeeper-cluster/node3/volumes/logs : /logs \
-e zoo_my_id=3 \
-e "zoo_servers=server.1=192.168.192.128:2888:3888;2181 server.2=192.168.192.128:2889:3889;2182 server.3=192.168.192.128:2890:3890;2183" 3487af26dee9
|
【坑】
乍一看,没什么问题啊,首先映射端口到宿主机,然后三个zookeeper之间的访问地址则是宿主机ip:映射端口,没毛病啊;
看我前面讲的网络模式就能看出问题,zoo_servers里面的ip有问题,犯这个错误都是不了解docker的网络模式的。什么错误往下看。
关于zoo_servers
什么意思呢,3.5.0开始,不应该再使用clientport和clientportaddress配置参数。相反,这些信息现在是server关键字规范的一部分。
端口映射三个容器不一样,比如2181/2182/2183,因为是一台宿主机嘛,端口不能冲突,如果你不在同一台机器,就不用修改端口。
最后的那个参数是镜像id,也可以是镜像名称:tag。
--privileged=true参数是为了解决【chown: changing ownership of '/data': permission denied】,也可以省略true
执行结果:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
[root@localhost admin] # docker run -d -p 2181:2181 -p 2888:2888 -p 3888:3888 --name zookeeper_node1 --privileged --restart always \
> - v /usr/local/zookeeper-cluster/node1/volumes/data : /data \
> - v /usr/local/zookeeper-cluster/node1/volumes/datalog : /datalog \
> - v /usr/local/zookeeper-cluster/node1/volumes/logs : /logs \
> -e zoo_my_id=1 \
> -e "zoo_servers=server.1=192.168.192.128:2888:3888;2181 server.2=192.168.192.128:2889:3889;2182 server.3=192.168.192.128:2890:3890;2183" 3487af26dee9
4bfa6bbeb936037e178a577e5efbd06d4a963e91d67274413b933fd189917776
[root@localhost admin] # docker run -d -p 2182:2181 -p 2889:2888 -p 3889:3888 --name zookeeper_node2 --privileged --restart always \
> - v /usr/local/zookeeper-cluster/node2/volumes/data : /data \
> - v /usr/local/zookeeper-cluster/node2/volumes/datalog : /datalog \
> - v /usr/local/zookeeper-cluster/node2/volumes/logs : /logs \
> -e zoo_my_id=2 \
> -e "zoo_servers=server.1=192.168.192.128:2888:3888;2181 server.2=192.168.192.128:2889:3889;2182 server.3=192.168.192.128:2890:3890;2183" 3487af26dee9
dbb7f1f323a09869d043152a4995e73bad5f615fd81bf11143fd1c28180f9869
[root@localhost admin] # docker run -d -p 2183:2181 -p 2890:2888 -p 3890:3888 --name zookeeper_node3 --privileged --restart always \
> - v /usr/local/zookeeper-cluster/node3/volumes/data : /data \
> - v /usr/local/zookeeper-cluster/node3/volumes/datalog : /datalog \
> - v /usr/local/zookeeper-cluster/node3/volumes/logs : /logs \
> -e zoo_my_id=3 \
> -e "zoo_servers=server.1=192.168.192.128:2888:3888;2181 server.2=192.168.192.128:2889:3889;2182 server.3=192.168.192.128:2890:3890;2183" 3487af26dee9
6dabae1d92f0e861cc7515c014c293f80075c2762b254fc56312a6d3b450a919
[root@localhost admin] #
|
查看启动的容器
1
2
3
4
5
6
|
[root@localhost admin] # docker ps
container id image command created status ports names
6dabae1d92f0 3487af26dee9 "/docker-entrypoin..." 31 seconds ago up 29 seconds 8080 /tcp , 0.0.0.0:2183->2181 /tcp , 0.0.0.0:2890->2888 /tcp , 0.0.0.0:3890->3888 /tcp zookeeper_node3
dbb7f1f323a0 3487af26dee9 "/docker-entrypoin..." 36 seconds ago up 35 seconds 8080 /tcp , 0.0.0.0:2182->2181 /tcp , 0.0.0.0:2889->2888 /tcp , 0.0.0.0:3889->3888 /tcp zookeeper_node2
4bfa6bbeb936 3487af26dee9 "/docker-entrypoin..." 46 seconds ago up 45 seconds 0.0.0.0:2181->2181 /tcp , 0.0.0.0:2888->2888 /tcp , 0.0.0.0:3888->3888 /tcp , 8080 /tcp zookeeper_node1
[root@localhost admin] #
|
不是说有错误吗?怎么还启动成功了??我们来看下节点1的启动日志
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
|
[root@localhost admin] # docker logs -f 4bfa6bbeb936
zookeeper jmx enabled by default
...
2019-08-29 09:20:22,665 [myid:1] - warn [workersender[myid=1]:quorumcnxmanager@677] - cannot open channel to 2 at election address /192 .168.192.128:3889
java.net.connectexception: connection refused (connection refused)
at java.net.plainsocketimpl.socketconnect(native method)
at java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:350)
at java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:206)
at java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:188)
at java.net.sockssocketimpl.connect(sockssocketimpl.java:392)
at java.net.socket.connect(socket.java:589)
at org.apache.zookeeper.server.quorum.quorumcnxmanager.connectone(quorumcnxmanager.java:648)
at org.apache.zookeeper.server.quorum.quorumcnxmanager.connectone(quorumcnxmanager.java:705)
at org.apache.zookeeper.server.quorum.quorumcnxmanager.tosend(quorumcnxmanager.java:618)
at org.apache.zookeeper.server.quorum.fastleaderelection$messenger$workersender.process(fastleaderelection.java:477)
at org.apache.zookeeper.server.quorum.fastleaderelection$messenger$workersender.run(fastleaderelection.java:456)
at java.lang.thread.run(thread.java:748)
2019-08-29 09:20:22,666 [myid:1] - warn [workersender[myid=1]:quorumcnxmanager@677] - cannot open channel to 3 at election address /192 .168.192.128:3890
java.net.connectexception: connection refused (connection refused)
at java.net.plainsocketimpl.socketconnect(native method)
at java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:350)
at java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:206)
at java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:188)
at java.net.sockssocketimpl.connect(sockssocketimpl.java:392)
at java.net.socket.connect(socket.java:589)
at org.apache.zookeeper.server.quorum.quorumcnxmanager.connectone(quorumcnxmanager.java:648)
at org.apache.zookeeper.server.quorum.quorumcnxmanager.connectone(quorumcnxmanager.java:705)
at org.apache.zookeeper.server.quorum.quorumcnxmanager.tosend(quorumcnxmanager.java:618)
at org.apache.zookeeper.server.quorum.fastleaderelection$messenger$workersender.process(fastleaderelection.java:477)
at org.apache.zookeeper.server.quorum.fastleaderelection$messenger$workersender.run(fastleaderelection.java:456)
at java.lang.thread.run(thread.java:748)
|
连接不上2 和 3,为什么呢,因为在默认的docker网络模式下,通过宿主机的ip+映射端口,根本找不到啊!他们有自己的ip啊!如下:
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
69
|
[root@localhost admin] # docker ps
container id image command created status ports names
6dabae1d92f0 3487af26dee9 "/docker-entrypoin..." 5 minutes ago up 5 minutes 8080 /tcp , 0.0.0.0:2183->2181 /tcp , 0.0.0.0:2890->2888 /tcp , 0.0.0.0:3890->3888 /tcp zookeeper_node3
dbb7f1f323a0 3487af26dee9 "/docker-entrypoin..." 6 minutes ago up 6 minutes 8080 /tcp , 0.0.0.0:2182->2181 /tcp , 0.0.0.0:2889->2888 /tcp , 0.0.0.0:3889->3888 /tcp zookeeper_node2
4bfa6bbeb936 3487af26dee9 "/docker-entrypoin..." 6 minutes ago up 6 minutes 0.0.0.0:2181->2181 /tcp , 0.0.0.0:2888->2888 /tcp , 0.0.0.0:3888->3888 /tcp , 8080 /tcp zookeeper_node1
[root@localhost admin] # docker inspect 4bfa6bbeb936
"networks" : {
"bridge" : {
"ipamconfig" : null,
"links" : null,
"aliases" : null,
"networkid" : "5fc1ce4362afe3d34fdf260ab0174c36fe4b7daf2189702eae48101a755079f3" ,
"endpointid" : "368237e4c903cc663111f1fe33ac4626a9100fb5a22aec85f5eccbc6968a1631" ,
"gateway" : "172.17.0.1" ,
"ipaddress" : "172.17.0.2" ,
"ipprefixlen" : 16,
"ipv6gateway" : "" ,
"globalipv6address" : "" ,
"globalipv6prefixlen" : 0,
"macaddress" : "02:42:ac:11:00:02"
}
}
}
}
]
[root@localhost admin] # docker inspect dbb7f1f323a0
"networks" : {
"bridge" : {
"ipamconfig" : null,
"links" : null,
"aliases" : null,
"networkid" : "5fc1ce4362afe3d34fdf260ab0174c36fe4b7daf2189702eae48101a755079f3" ,
"endpointid" : "8a9734044a566d5ddcd7cbbf6661abb2730742f7c73bd8733ede9ed8ef106659" ,
"gateway" : "172.17.0.1" ,
"ipaddress" : "172.17.0.3" ,
"ipprefixlen" : 16,
"ipv6gateway" : "" ,
"globalipv6address" : "" ,
"globalipv6prefixlen" : 0,
"macaddress" : "02:42:ac:11:00:03"
}
}
}
}
]
[root@localhost admin] # docker inspect 6dabae1d92f0
"networks" : {
"bridge" : {
"ipamconfig" : null,
"links" : null,
"aliases" : null,
"networkid" : "5fc1ce4362afe3d34fdf260ab0174c36fe4b7daf2189702eae48101a755079f3" ,
"endpointid" : "b10329b9940a07aacb016d8d136511ec388de02bf3bd0e0b50f7f4cbb7f138ec" ,
"gateway" : "172.17.0.1" ,
"ipaddress" : "172.17.0.4" ,
"ipprefixlen" : 16,
"ipv6gateway" : "" ,
"globalipv6address" : "" ,
"globalipv6prefixlen" : 0,
"macaddress" : "02:42:ac:11:00:04"
}
}
}
}
]
|
node1---172.17.0.2
node2---172.17.0.3
node3---172.17.0.4
既然我们知道了它有自己的ip,那又出现另一个问题了,就是它的ip是动态的,启动之前我们无法得知。有个解决办法就是创建自己的bridge网络,然后创建容器的时候指定ip。
【正确方式开始】
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
|
[root@localhost admin] # docker network create --driver bridge --subnet=172.18.0.0/16 --gateway=172.18.0.1 zoonet
8257c501652a214d27efdf5ef71ff38bfe222c3a2a7898be24b8df9db1fb3b13
[root@localhost admin] # docker network ls
network id name driver scope
5fc1ce4362af bridge bridge local
6aa33e21444e host host local
20e563b93ce9 none null local
8257c501652a zoonet bridge local
[root@localhost admin] # docker network inspect 8257c501652a
[
{
"name" : "zoonet" ,
"id" : "8257c501652a214d27efdf5ef71ff38bfe222c3a2a7898be24b8df9db1fb3b13" ,
"created" : "2019-08-29t06:08:01.442601483-04:00" ,
"scope" : "local" ,
"driver" : "bridge" ,
"enableipv6" : false ,
"ipam" : {
"driver" : "default" ,
"options" : {},
"config" : [
{
"subnet" : "172.18.0.0/16" ,
"gateway" : "172.18.0.1"
}
]
},
"internal" : false ,
"attachable" : false ,
"containers" : {},
"options" : {},
"labels" : {}
}
]
|
然后我们修改一下zookeeper容器的创建命令。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
docker run -d -p 2181:2181 --name zookeeper_node1 --privileged --restart always --network zoonet --ip 172.18.0.2 \
- v /usr/local/zookeeper-cluster/node1/volumes/data : /data \
- v /usr/local/zookeeper-cluster/node1/volumes/datalog : /datalog \
- v /usr/local/zookeeper-cluster/node1/volumes/logs : /logs \
-e zoo_my_id=1 \
-e "zoo_servers=server.1=172.18.0.2:2888:3888;2181 server.2=172.18.0.3:2888:3888;2181 server.3=172.18.0.4:2888:3888;2181" 3487af26dee9
docker run -d -p 2182:2181 --name zookeeper_node2 --privileged --restart always --network zoonet --ip 172.18.0.3 \
- v /usr/local/zookeeper-cluster/node2/volumes/data : /data \
- v /usr/local/zookeeper-cluster/node2/volumes/datalog : /datalog \
- v /usr/local/zookeeper-cluster/node2/volumes/logs : /logs \
-e zoo_my_id=2 \
-e "zoo_servers=server.1=172.18.0.2:2888:3888;2181 server.2=172.18.0.3:2888:3888;2181 server.3=172.18.0.4:2888:3888;2181" 3487af26dee9
docker run -d -p 2183:2181 --name zookeeper_node3 --privileged --restart always --network zoonet --ip 172.18.0.4 \
- v /usr/local/zookeeper-cluster/node3/volumes/data : /data \
- v /usr/local/zookeeper-cluster/node3/volumes/datalog : /datalog \
- v /usr/local/zookeeper-cluster/node3/volumes/logs : /logs \
-e zoo_my_id=3 \
-e "zoo_servers=server.1=172.18.0.2:2888:3888;2181 server.2=172.18.0.3:2888:3888;2181 server.3=172.18.0.4:2888:3888;2181" 3487af26dee9
|
1. 由于2888 、3888不需要暴露,就不映射了;
2. 指定自己的网络,并指定ip;
3. 每个容器之间环境是隔离的,所以容器内所用的端口一样:2181/2888/3888
运行结果:
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
|
[root@localhost admin] # docker run -d -p 2181:2181 --name zookeeper_node1 --privileged --restart always --network zoonet --ip 172.18.0.2 \
> - v /usr/local/zookeeper-cluster/node1/volumes/data : /data \
> - v /usr/local/zookeeper-cluster/node1/volumes/datalog : /datalog \
> - v /usr/local/zookeeper-cluster/node1/volumes/logs : /logs \
> -e zoo_my_id=1 \
> -e "zoo_servers=server.1=172.18.0.2:2888:3888;2181 server.2=172.18.0.3:2888:3888;2181 server.3=172.18.0.4:2888:3888;2181" 3487af26dee9
50c07cf11fab2d3b4da6d8ce48d8ed4a7beaab7d51dd542b8309f781e9920c36
[root@localhost admin] # docker run -d -p 2182:2181 --name zookeeper_node2 --privileged --restart always --network zoonet --ip 172.18.0.3 \
> - v /usr/local/zookeeper-cluster/node2/volumes/data : /data \
> - v /usr/local/zookeeper-cluster/node2/volumes/datalog : /datalog \
> - v /usr/local/zookeeper-cluster/node2/volumes/logs : /logs \
> -e zoo_my_id=2 \
> -e "zoo_servers=server.1=172.18.0.2:2888:3888;2181 server.2=172.18.0.3:2888:3888;2181 server.3=172.18.0.4:2888:3888;2181" 3487af26dee9
649a4dbfb694504acfe4b8e11b990877964477bb41f8a230bd191cba7d20996f
[root@localhost admin] # docker run -d -p 2183:2181 --name zookeeper_node3 --privileged --restart always --network zoonet --ip 172.18.0.4 \
> - v /usr/local/zookeeper-cluster/node3/volumes/data : /data \
> - v /usr/local/zookeeper-cluster/node3/volumes/datalog : /datalog \
> - v /usr/local/zookeeper-cluster/node3/volumes/logs : /logs \
> -e zoo_my_id=3 \
> -e "zoo_servers=server.1=172.18.0.2:2888:3888;2181 server.2=172.18.0.3:2888:3888;2181 server.3=172.18.0.4:2888:3888;2181" 3487af26dee9
c8bc1b9ae9adf86e9c7f6a3264f883206c6d0e4f6093db3200de80ef39f57160
[root@localhost admin] # docker ps
container id image command created status ports names
c8bc1b9ae9ad 3487af26dee9 "/docker-entrypoin..." 17 seconds ago up 16 seconds 2888 /tcp , 3888 /tcp , 8080 /tcp , 0.0.0.0:2183->2181 /tcp zookeeper_node3
649a4dbfb694 3487af26dee9 "/docker-entrypoin..." 22 seconds ago up 21 seconds 2888 /tcp , 3888 /tcp , 8080 /tcp , 0.0.0.0:2182->2181 /tcp zookeeper_node2
50c07cf11fab 3487af26dee9 "/docker-entrypoin..." 33 seconds ago up 32 seconds 2888 /tcp , 3888 /tcp , 0.0.0.0:2181->2181 /tcp , 8080 /tcp zookeeper_node1
[root@localhost admin] #
|
进入容器内部验证一下:
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
|
[root@localhost admin] # docker exec -it 50c07cf11fab bash
root@50c07cf11fab: /apache-zookeeper-3 .5.5-bin # ./bin/zkserver.sh status
zookeeper jmx enabled by default
using config: /conf/zoo .cfg
client port found: 2181. client address: localhost.
mode: follower
root@50c07cf11fab: /apache-zookeeper-3 .5.5-bin # exit
exit
[root@localhost admin] # docker exec -it 649a4dbfb694 bash
root@649a4dbfb694: /apache-zookeeper-3 .5.5-bin # ./bin/zkserver.sh status
zookeeper jmx enabled by default
using config: /conf/zoo .cfg
client port found: 2181. client address: localhost.
mode: leader
root@649a4dbfb694: /apache-zookeeper-3 .5.5-bin # exit
exit
[root@localhost admin] # docker exec -it c8bc1b9ae9ad bash
root@c8bc1b9ae9ad: /apache-zookeeper-3 .5.5-bin # ./bin/zkserver.sh status
zookeeper jmx enabled by default
using config: /conf/zoo .cfg
client port found: 2181. client address: localhost.
mode: follower
root@c8bc1b9ae9ad: /apache-zookeeper-3 .5.5-bin # exit
exit
[root@localhost admin] #
|
在验证一下创建节点
开启防火墙,以供外部访问
1
2
3
4
5
|
firewall-cmd --zone=public --add-port=2181 /tcp --permanent
firewall-cmd --zone=public --add-port=2182 /tcp --permanent
firewall-cmd --zone=public --add-port=2183 /tcp --permanent
systemctl restart firewalld
firewall-cmd --list-all
|
在本地,我用zookeeper的客户端连接虚拟机上的集群:
可以看到连接成功!
集群安装方式二:通过docker stack deploy或docker-compose安装
这里用docker-compose。先安装docker-compose
1
2
3
4
5
6
|
[root@localhost admin] # curl -l "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
% total % received % xferd average speed time time time current
dload upload total spent left speed
100 617 0 617 0 0 145 0 --:--:-- 0:00:04 --:--:-- 145
100 15.4m 100 15.4m 0 0 131k 0 0:02:00 0:02:00 --:--:-- 136k
[root@localhost admin] # chmod +x /usr/local/bin/docker-compose
|
检查版本(验证是否安装成功)
1
2
|
[root@localhost admin] # docker-compose --version
docker-compose version 1.24.1, build 4667896b
|
卸载的话
1
|
rm /usr/local/bin/docker-compose
|
开始配置,新建三个挂载目录
1
2
3
|
[root@localhost admin] # mkdir /usr/local/zookeeper-cluster/node4
[root@localhost admin] # mkdir /usr/local/zookeeper-cluster/node5
[root@localhost admin] # mkdir /usr/local/zookeeper-cluster/node6
|
新建任意目录,然后在里面新建一个文件
1
2
3
|
[root@localhost admin] # mkdir dockercomposefolder
[root@localhost admin] # cd dockercomposefolder/
[root@localhost dockercomposefolder] # vim docker-compose.yml
|
文件内容如下:(自定义网络见上面)
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
|
version: '3.1'
services:
zoo1:
image: zookeeper
restart: always
privileged: true
hostname: zoo1
ports:
- 2181:2181
volumes: # 挂载数据
- /usr/local/zookeeper-cluster/node4/data:/data
- /usr/local/zookeeper-cluster/node4/datalog:/datalog
environment:
zoo_my_id: 4
zoo_servers: server.4=0.0.0.0:2888:3888;2181 server.5=zoo2:2888:3888;2181 server.6=zoo3:2888:3888;2181
networks:
default:
ipv4_address: 172.18.0.14
zoo2:
image: zookeeper
restart: always
privileged: true
hostname: zoo2
ports:
- 2182:2181
volumes: # 挂载数据
- /usr/local/zookeeper-cluster/node5/data:/data
- /usr/local/zookeeper-cluster/node5/datalog:/datalog
environment:
zoo_my_id: 5
zoo_servers: server.4=zoo1:2888:3888;2181 server.5=0.0.0.0:2888:3888;2181 server.6=zoo3:2888:3888;2181
networks:
default:
ipv4_address: 172.18.0.15
zoo3:
image: zookeeper
restart: always
privileged: true
hostname: zoo3
ports:
- 2183:2181
volumes: # 挂载数据
- /usr/local/zookeeper-cluster/node6/data:/data
- /usr/local/zookeeper-cluster/node6/datalog:/datalog
environment:
zoo_my_id: 6
zoo_servers: server.4=zoo1:2888:3888;2181 server.5=zoo2:2888:3888;2181 server.6=0.0.0.0:2888:3888;2181
networks:
default:
ipv4_address: 172.18.0.16
networks: # 自定义网络
default:
external:
name: zoonet
|
注意yaml文件里不能有tab,只能有空格。
关于version与docker版本的关系如下:
然后执行(-d后台启动)
1
|
docker-compose -f docker-compose.yml up -d
|
查看已启动的容器
1
2
3
4
5
|
[root@localhost dockercomposefolder] # docker ps
container id image command created status ports names
a2c14814037d zookeeper "/docker-entrypoin..." 6 minutes ago up about a minute 2888 /tcp , 3888 /tcp , 8080 /tcp , 0.0.0.0:2183->2181 /tcp dockercomposefolder_zoo3_1
50310229b216 zookeeper "/docker-entrypoin..." 6 minutes ago up about a minute 2888 /tcp , 3888 /tcp , 0.0.0.0:2181->2181 /tcp , 8080 /tcp dockercomposefolder_zoo1_1
475d8a9e2d08 zookeeper "/docker-entrypoin..." 6 minutes ago up about a minute 2888 /tcp , 3888 /tcp , 8080 /tcp , 0.0.0.0:2182->2181 /tcp dockercomposefolder_zoo2_1
|
进入一个容器
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[root@localhost dockercomposefolder] # docker exec -it a2c14814037d bash
root@zoo3: /apache-zookeeper-3 .5.5-bin # ./bin/zkcli.sh
connecting to localhost:2181
....
watchedevent state:syncconnected type :none path:null
[zk: localhost:2181(connected) 0]
[zk: localhost:2181(connected) 1] ls /
[zookeeper]
[zk: localhost:2181(connected) 2] create /hi
created /hi
[zk: localhost:2181(connected) 3] ls /
[hi, zookeeper]
|
进入另一个容器
1
2
3
4
5
6
7
8
9
10
|
[root@localhost dockercomposefolder] # docker exec -it 50310229b216 bash
root@zoo1: /apache-zookeeper-3 .5.5-bin # ./bin/zkcli.sh
connecting to localhost:2181
...
watchedevent state:syncconnected type :none path:null
[zk: localhost:2181(connected) 0] ls /
[hi, zookeeper]
|
本地客户端连接集群:
1
|
zkcli.cmd -server 192.168.192.128:2181,192.168.192.128:2182,192.168.192.128:2183
|
查看
停止所有活动容器
删除所有已停止的容器
更多docker-compose的命令:
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
|
[root@localhost dockercomposefolder] # docker-compose --help
define and run multi-container applications with docker.
usage:
docker-compose [-f <arg>...] [options] [ command ] [args...]
docker-compose -h|--help
options:
-f, -- file file specify an alternate compose file
(default: docker-compose.yml)
-p, --project-name name specify an alternate project name
(default: directory name)
--verbose show more output
--log-level level set log level (debug, info, warning, error, critical)
--no-ansi do not print ansi control characters
- v , --version print version and exit
-h, --host host daemon socket to connect to
--tls use tls; implied by --tlsverify
--tlscacert ca_path trust certs signed only by this ca
--tlscert client_cert_path path to tls certificate file
--tlskey tls_key_path path to tls key file
--tlsverify use tls and verify the remote
--skip- hostname -check don 't check the daemon' s hostname against the
name specified in the client certificate
--project-directory path specify an alternate working directory
(default: the path of the compose file )
--compatibility if set , compose will attempt to convert keys
in v3 files to their non-swarm equivalent
commands:
build build or rebuild services
bundle generate a docker bundle from the compose file
config validate and view the compose file
create create services
down stop and remove containers, networks, images, and volumes
events receive real time events from containers
exec execute a command in a running container
help get help on a command
images list images
kill kill containers
logs view output from containers
pause pause services
port print the public port for a port binding
ps list containers
pull pull service images
push push service images
restart restart services
rm remove stopped containers
run run a one-off command
scale set number of containers for a service
start start services
stop stop services
top display the running processes
unpause unpause services
up create and start containers
version show the docker-compose version information
|
到此这篇关于docker下安装zookeeper(单机和集群)的文章就介绍到这了,更多相关docker安装zookeeper内容请搜索服务器之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持服务器之家!
原文链接:https://www.cnblogs.com/LUA123/p/11428113.html