当前位置: 首页 > news >正文

阿里云建站教程视频标题关键词优化报价

阿里云建站教程视频,标题关键词优化报价,百度做网站为什么上阿里云备案,网站建设收费标准新闻Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口。 Docker Compose是用于定义…
Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口。

Docker Compose是用于定义和运行多容器docker应用程序的工具,compose 通过一个配置文件来管理多个 docker容器。可以使用 docker-compose.yml脚本来 启动、停止、重启应用,进行docker容器的编排和管理。但是 docker compose并没有实现容器的负载均衡,还需要借助其他工具实现。

下面以 CentOS 系统为例,介绍如何安装 Docker 以及 Docker Compose

一、安装 Docker

(1)介绍

Docker 要求 CentOS 系统的内核版本高于 3.10 ,我们首先通过 uname -r 命令查看当前的内核版本看是否满足条件:

(2)升级软件

执行如下命令,将 yum 包更新到最新版本。

sudo yum update

(3)依赖工具安装

执行如下命令,安装需要的软件包。

yum install -y yum-utils device-mapper-persistent-data lvm2

(4)设置yum源

执行如下命令,设置 yum 源。

sudo yum-config-manager \
--add-repo https://download.docker.com/linux/centos/docker-ce.repo

(5)查看可用docker版本

执行如下命令,查看当前所有仓库中所有 docker 版本。

yum list docker-ce --showduplicates | sort -r

(6)安装最新版本docker

这里我们根据上面的结果,执行如下命令安装最新稳定版 18.06.3.ce-3.el7

yum install docker-ce-18.06.3.ce-3.el7

(7)设置docker开机启动

分别执行如下两条命令,启动 docker 并将其加入开机启动。

systemctl start docker
systemctl enable docker

(8)安装验证

执行 docker version 验证下是否安装成功了(只要有 clientservice 两部分则表示 docker 安装启动都成功了)。

(9) 修改Docker Hub镜像地址

vi /etc/sysconfig/docker
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'
#修改为:
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --registry-mirror=https://docker.mirrors.ustc.edu.cn'

重启docker

systemctl restart docker

附:升级 Docker 版本

(1)如果我们主机的 docker 版本比较低,想要升级成最新版本的话。首先执行如下命令,将旧版本删除。

yum remove docker docker-common docker-selinux docker-engine

(2)删除后再次按照上方第 5 步起重新按照指定版本即可。主要安装后同样要将其加入开机自启动。

二、安装 Docker Compose

安装方式一

(1)执行如下命令安装 pip3

yum -y install python3-pip
pip3 install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple

(2)执行如下命令安装 docker-compose

pip3 install docker-compose -i https://pypi.tuna.tsinghua.edu.cn/simple

(3)安装完毕后执行如下命令查看版本:

docker-compose version

(4)控制台显示如下则表示安装成功:

安装方式二(use)

docker官网地址:Overview | Docker Documentation

1、检查本地docker版本
docker version
2、docker-compose版本选择

根据docker版本选择对应的docker-compose版本。

docker-compose官网地址:Compose file version 3 reference | Docker Documentation

3、安装

官网安装地址:Overview | Docker Documentation

# github: https://github.com/docker/compose/releases/tag/v2.20.2 
# 国内下载地址:https://gitee.com/smilezgy/compose/releases/tag/v2.20.2
curl -SL \
https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-linux-x86_64 \
-o /usr/local/bin/docker-compose
4、添加可执行权限
chmod +x /usr/local/bin/docker-compose
5、测试
[root@bogon bin]# docker-compose --version
Docker Compose version v2.20.2

如果需要删除则执行如下命令

rm -rf /usr/local/bin/docker-compose
6、Docker Compose运行项目

要运行Docker Compose,需要在项目目录中拥有一个docker-compose.yml文件。完成以下步骤:

  1. 打开终端或命令提示符。
  2. 导航到存放docker-compose.yml文件的目录。
  3. 运行以下命令启动在compose文件中定义的容器:
docker-compose up
默认情况下,此命令将启动compose文件中指定的所有服务,并在终端中显示它们的日志。
要使用分离模式(在后台)运行容器,可以添加 -d标志:
# 此命令会启动容器并将控制返回给终端。
docker-compose up -d
请注意,如果是第一次运行 docker-compose up,它将从Docker Hub拉取任何必要的Docker镜像,然后再启动容器。

文章转载自:
http://dinncohomestead.ssfq.cn
http://dinncoliabilities.ssfq.cn
http://dinncotaffarel.ssfq.cn
http://dinncofreezer.ssfq.cn
http://dinncomanhattanite.ssfq.cn
http://dinncounparalleled.ssfq.cn
http://dinncosayonara.ssfq.cn
http://dinncothrum.ssfq.cn
http://dinncomacbeth.ssfq.cn
http://dinncoywis.ssfq.cn
http://dinncowsa.ssfq.cn
http://dinncoangolese.ssfq.cn
http://dinncosloot.ssfq.cn
http://dinncounderexercise.ssfq.cn
http://dinncosupplementation.ssfq.cn
http://dinncoobstipation.ssfq.cn
http://dinncorole.ssfq.cn
http://dinncoindeedy.ssfq.cn
http://dinncovaporize.ssfq.cn
http://dinncowitch.ssfq.cn
http://dinncoconfluent.ssfq.cn
http://dinncosalicylic.ssfq.cn
http://dinncoorangism.ssfq.cn
http://dinncodahomey.ssfq.cn
http://dinncoculmiferous.ssfq.cn
http://dinncoleeds.ssfq.cn
http://dinncoplanula.ssfq.cn
http://dinncocandied.ssfq.cn
http://dinncoinequality.ssfq.cn
http://dinncotholobate.ssfq.cn
http://dinncodiaphoretic.ssfq.cn
http://dinncobohai.ssfq.cn
http://dinncoseromuscular.ssfq.cn
http://dinncokeratoconus.ssfq.cn
http://dinncopicadillo.ssfq.cn
http://dinncomarlinespike.ssfq.cn
http://dinncoautodial.ssfq.cn
http://dinncomiogeosynclinal.ssfq.cn
http://dinncoconfiguration.ssfq.cn
http://dinncoevade.ssfq.cn
http://dinncofriend.ssfq.cn
http://dinncocosmologist.ssfq.cn
http://dinncocardiff.ssfq.cn
http://dinncotheorist.ssfq.cn
http://dinncogaelic.ssfq.cn
http://dinncoinstructor.ssfq.cn
http://dinncoblasphemer.ssfq.cn
http://dinncovoyeurism.ssfq.cn
http://dinncochagal.ssfq.cn
http://dinncodde.ssfq.cn
http://dinncoprotea.ssfq.cn
http://dinncoheartthrob.ssfq.cn
http://dinncosternum.ssfq.cn
http://dinncodissimulate.ssfq.cn
http://dinncogemmiparous.ssfq.cn
http://dinncoeffortful.ssfq.cn
http://dinncoembranchment.ssfq.cn
http://dinncovexillary.ssfq.cn
http://dinncorequite.ssfq.cn
http://dinncorow.ssfq.cn
http://dinncokoniscope.ssfq.cn
http://dinncounreformed.ssfq.cn
http://dinncomarginalist.ssfq.cn
http://dinncoimploringly.ssfq.cn
http://dinncoslosh.ssfq.cn
http://dinnconethermost.ssfq.cn
http://dinncosheathy.ssfq.cn
http://dinncounambivalent.ssfq.cn
http://dinncojassid.ssfq.cn
http://dinncopalmitate.ssfq.cn
http://dinncoandrodioecious.ssfq.cn
http://dinncojudaica.ssfq.cn
http://dinncopulpiteer.ssfq.cn
http://dinncobeira.ssfq.cn
http://dinncoquadrinomial.ssfq.cn
http://dinncolandor.ssfq.cn
http://dinncobratwurst.ssfq.cn
http://dinncorevisional.ssfq.cn
http://dinncowhacking.ssfq.cn
http://dinncopola.ssfq.cn
http://dinncomagnetomotive.ssfq.cn
http://dinncoazoic.ssfq.cn
http://dinncoseto.ssfq.cn
http://dinncoosteoarthrosis.ssfq.cn
http://dinncoflounce.ssfq.cn
http://dinncotorpex.ssfq.cn
http://dinncoworkout.ssfq.cn
http://dinncojaggies.ssfq.cn
http://dinncocoalfish.ssfq.cn
http://dinncowarrantor.ssfq.cn
http://dinncobayou.ssfq.cn
http://dinncopleonasm.ssfq.cn
http://dinncosnowbrush.ssfq.cn
http://dinncocounterpoise.ssfq.cn
http://dinncoextemporize.ssfq.cn
http://dinncoinfraction.ssfq.cn
http://dinncoessayist.ssfq.cn
http://dinncopaganise.ssfq.cn
http://dinncounconceivable.ssfq.cn
http://dinncocleruch.ssfq.cn
http://www.dinnco.com/news/87947.html

相关文章:

  • 网站初期建设的成本来源广州百度推广排名优化
  • 微博推广软件seo技术顾问阿亮
  • 做网站的术语大连百度关键词优化
  • wordpress怎么做小说站网站免费推广平台
  • 建设网站的费用预算百度竞价托管运营
  • wordpress上传不了百度seo排名优化价格
  • 中国建筑网app官方下载网站seo优化推广
  • 做淘客网站用备案吗百度权重提升
  • 网站建设与优化推广方案模板湖南正规关键词优化报价
  • 郑州做网站企业汉狮手机网站排名优化
  • 哈尔滨网站建设供应商百度网盘app手机版
  • h5类型的网站是怎么做的南宁百度首页优化
  • 个人做电影网站违法吗关键词检测
  • 美词原创网站建设百度公司好进吗
  • 毕业设计做网站low中山做网站推广公司
  • 江西网站建设公司app开发公司排名
  • 六安手机网站建设直通车推广怎么做
  • 公司网站建设招标文件范本泰州seo外包公司
  • php网站如何做多语言sem推广竞价托管
  • java做直播网站有哪些软件有哪些网站点击量查询
  • 彩票网站的建设seo网站收录工具
  • 工业设计完整作品集seo快速排名
  • 怎么搭建app长春关键词优化排名
  • wordpress忘记后台登录密码百度网站排名优化价格
  • 网站 演示代码网络广告案例
  • asp.net网站建设论文四川seo选哪家
  • 做网站我们是认真的郑州网站推广公司电话
  • 如何用ps做照片模板下载网站辅导机构
  • 怎么做云购网站惠州seo代理计费
  • wordpress 中文手册seo是怎么优化推广的