《Linux运维葵花宝典---Docker Compose手册》

时间:2022-06-24 14:55:14
Xshell 6 (Build 0125)
Copyright (c) 2002 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

Connecting to 192.168.1.240:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Mon Jul 15 22:34:00 2019 from 192.168.1.161
[centos@docker-192-168-1-240 ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/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    327      0 --:--:--  0:00:01 --:--:--   327
100 10.3M  100 10.3M    0     0   344k      0  0:00:30  0:00:30 --:--:--  156k
[centos@docker-192-168-1-240 ~]$ sudo chmod +x /usr/local/bin/docker-compose
[centos@docker-192-168-1-240 ~]$ sudo ln -s /usr/local/bin/docker-compose /bin/
[centos@docker-192-168-1-240 ~]$ sudo docker-compose -v
docker-compose version 1.21.2, build a133471
[centos@docker-192-168-1-240 ~]$ sudo wget -O /home/centos/apache-maven-3.6.1-bin.tar.gz  http://mirror.bit.edu.cn/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz
--2019-07-15 22:46:37--  http://mirror.bit.edu.cn/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz
Resolving mirror.bit.edu.cn (mirror.bit.edu.cn)... 219.143.204.117, 202.204.80.77, 2001:da8:204:2001:250:56ff:fea1:22
Connecting to mirror.bit.edu.cn (mirror.bit.edu.cn)|219.143.204.117|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9136463 (8.7M) [application/octet-stream]
Saving to: ‘/home/centos/apache-maven-3.6.1-bin.tar.gz’

100%[=====================================================================================================================>] 9,136,463   2.08MB/s   in 4.6s   

2019-07-15 22:46:43 (1.87 MB/s) - ‘/home/centos/apache-maven-3.6.1-bin.tar.gz’ saved [9136463/9136463]
[centos@docker-192-168-1-240 ~]$ tar xzvf apache-maven-3.6.1-bin.tar.gz
apache-maven-3.6.1/README.txt
apache-maven-3.6.1/LICENSE
apache-maven-3.6.1/NOTICE
apache-maven-3.6.1/lib/
apache-maven-3.6.1/lib/slf4j-api.license
apache-maven-3.6.1/lib/checker-compat-qual.license
apache-maven-3.6.1/lib/jsr250-api.license
apache-maven-3.6.1/lib/jcl-over-slf4j.license
apache-maven-3.6.1/lib/org.eclipse.sisu.plexus.license
apache-maven-3.6.1/lib/animal-sniffer-annotations.license
apache-maven-3.6.1/lib/org.eclipse.sisu.inject.license
apache-maven-3.6.1/lib/jansi-native/
apache-maven-3.6.1/lib/jansi-native/freebsd64/
apache-maven-3.6.1/lib/jansi-native/osx/
apache-maven-3.6.1/lib/jansi-native/windows32/
apache-maven-3.6.1/lib/jansi-native/linux32/
apache-maven-3.6.1/lib/jansi-native/freebsd32/
apache-maven-3.6.1/lib/jansi-native/windows64/
apache-maven-3.6.1/lib/jansi-native/linux64/
apache-maven-3.6.1/lib/jansi-native/freebsd64/libjansi.so
apache-maven-3.6.1/lib/jansi-native/osx/libjansi.jnilib
apache-maven-3.6.1/lib/jansi-native/windows32/jansi.dll
apache-maven-3.6.1/lib/jansi-native/linux32/libjansi.so
apache-maven-3.6.1/lib/jansi-native/freebsd32/libjansi.so
apache-maven-3.6.1/lib/jansi-native/windows64/jansi.dll
apache-maven-3.6.1/lib/jansi-native/linux64/libjansi.so
apache-maven-3.6.1/bin/mvn.cmd
apache-maven-3.6.1/bin/m2.conf
apache-maven-3.6.1/bin/mvnDebug.cmd
apache-maven-3.6.1/bin/mvnDebug
apache-maven-3.6.1/bin/mvn
apache-maven-3.6.1/bin/mvnyjp
apache-maven-3.6.1/conf/
apache-maven-3.6.1/conf/logging/
apache-maven-3.6.1/conf/settings.xml
apache-maven-3.6.1/conf/toolchains.xml
apache-maven-3.6.1/conf/logging/simplelogger.properties
apache-maven-3.6.1/lib/ext/
apache-maven-3.6.1/lib/jansi-native/
apache-maven-3.6.1/lib/ext/README.txt
apache-maven-3.6.1/lib/jansi-native/README.txt
apache-maven-3.6.1/boot/plexus-classworlds-2.6.0.jar
apache-maven-3.6.1/lib/maven-embedder-3.6.1.jar
apache-maven-3.6.1/lib/maven-settings-3.6.1.jar
apache-maven-3.6.1/lib/plexus-utils-3.2.0.jar
apache-maven-3.6.1/lib/maven-settings-builder-3.6.1.jar
apache-maven-3.6.1/lib/maven-builder-support-3.6.1.jar
apache-maven-3.6.1/lib/plexus-interpolation-1.25.jar
apache-maven-3.6.1/lib/plexus-component-annotations-1.7.1.jar
apache-maven-3.6.1/lib/plexus-sec-dispatcher-1.4.jar
apache-maven-3.6.1/lib/plexus-cipher-1.7.jar
apache-maven-3.6.1/lib/maven-core-3.6.1.jar
apache-maven-3.6.1/lib/maven-model-3.6.1.jar
apache-maven-3.6.1/lib/maven-repository-metadata-3.6.1.jar
apache-maven-3.6.1/lib/maven-artifact-3.6.1.jar
apache-maven-3.6.1/lib/commons-lang3-3.8.1.jar
apache-maven-3.6.1/lib/maven-plugin-api-3.6.1.jar
apache-maven-3.6.1/lib/org.eclipse.sisu.plexus-0.3.3.jar
apache-maven-3.6.1/lib/cdi-api-1.0.jar
apache-maven-3.6.1/lib/jsr250-api-1.0.jar
apache-maven-3.6.1/lib/javax.inject-1.jar
apache-maven-3.6.1/lib/org.eclipse.sisu.inject-0.3.3.jar
apache-maven-3.6.1/lib/maven-model-builder-3.6.1.jar
apache-maven-3.6.1/lib/maven-resolver-provider-3.6.1.jar
apache-maven-3.6.1/lib/maven-resolver-api-1.3.3.jar
apache-maven-3.6.1/lib/maven-resolver-spi-1.3.3.jar
apache-maven-3.6.1/lib/maven-resolver-util-1.3.3.jar
apache-maven-3.6.1/lib/maven-resolver-impl-1.3.3.jar
apache-maven-3.6.1/lib/slf4j-api-1.7.25.jar
apache-maven-3.6.1/lib/maven-shared-utils-3.2.1.jar
apache-maven-3.6.1/lib/commons-io-2.5.jar
apache-maven-3.6.1/lib/guice-4.2.1-no_aop.jar
apache-maven-3.6.1/lib/aopalliance-1.0.jar
apache-maven-3.6.1/lib/guava-25.1-android.jar
apache-maven-3.6.1/lib/jsr305-3.0.2.jar
apache-maven-3.6.1/lib/checker-compat-qual-2.0.0.jar
apache-maven-3.6.1/lib/error_prone_annotations-2.1.3.jar
apache-maven-3.6.1/lib/j2objc-annotations-1.1.jar
apache-maven-3.6.1/lib/animal-sniffer-annotations-1.14.jar
apache-maven-3.6.1/lib/commons-cli-1.4.jar
apache-maven-3.6.1/lib/maven-compat-3.6.1.jar
apache-maven-3.6.1/lib/wagon-provider-api-3.3.2.jar
apache-maven-3.6.1/lib/wagon-http-3.3.2-shaded.jar
apache-maven-3.6.1/lib/jcl-over-slf4j-1.7.25.jar
apache-maven-3.6.1/lib/wagon-file-3.3.2.jar
apache-maven-3.6.1/lib/maven-resolver-connector-basic-1.3.3.jar
apache-maven-3.6.1/lib/maven-resolver-transport-wagon-1.3.3.jar
apache-maven-3.6.1/lib/maven-slf4j-provider-3.6.1.jar
apache-maven-3.6.1/lib/jansi-1.17.1.jar
[centos@docker-192-168-1-240 ~]$ sudo mv apache-maven-3.6.1 /usr/local/