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

建设一个电影网站怎么做谷歌搜索引擎在线

建设一个电影网站怎么做,谷歌搜索引擎在线,集团有限公司,少儿编程的好处和坏处Docker官网链接: https://docs.docker.com/ 1.确定Linux版本 新版本的Docker对Linux系统版本有一定的要求。如果Linux的发行版系统是centOS,安装最新版的docker需要centOS 7以上的系统。 在Docker安装帮助页面查看支持的系统版本。 Docker帮助页面:https://docs…

 Docker官网链接: https://docs.docker.com/

1.确定Linux版本

新版本的Docker对Linux系统版本有一定的要求。如果Linux的发行版系统是centOS,安装最新版的docker需要centOS 7以上的系统。

在Docker安装帮助页面查看支持的系统版本。

Docker帮助页面:https://docs.docker.com/engine/install/centos/

打开terminal,输入查看系统信息。

cat /etc/os-release

确保自己的系统满足安装要求。

[root@VM-8-7-centos server]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

2.安装Docker

官网提供的软件源速度比较慢,这里使用阿里云的软件源。

step 1: 安装必要的一些系统工具

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

Step 2: 添加软件源信息

sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

Step 3: 更新yum索引列表并安装Docker引擎

sudo yum makecache fast

yum索引列表没有更新可以直接使用yum makecache

sudo yum install docker-ce

安装过程中会提示确认,输入y以确认。

Step 4: 开启Docker服务

sudo service docker start

3.测试是否安装成功

在Terminal中输入docker version,安装成功会提示以下信息。


[root@VM-8-7-centos server]# docker version
Client: Docker Engine - CommunityVersion:           24.0.7API version:       1.43Go version:        go1.20.10Git commit:        afdd53bBuilt:             Thu Oct 26 09:11:35 2023OS/Arch:           linux/amd64Context:           defaultServer: Docker Engine - CommunityEngine:Version:          24.0.7API version:      1.43 (minimum version 1.12)Go version:       go1.20.10Git commit:       311b9ffBuilt:            Thu Oct 26 09:10:36 2023OS/Arch:          linux/amd64Experimental:     falsecontainerd:Version:          1.6.24GitCommit:        61f9fd88f79f081d64d6fa3bb1a0dc71ec870523runc:Version:          1.1.9GitCommit:        v1.1.9-0-gccaecfcdocker-init:Version:          0.19.0GitCommit:        de40ad0

4.配置下载docker镜像的仓库

docker的默认仓库Docker Hub下载速度在国内是很慢的,需要我们替换为阿里云的仓库。

打开腾讯云的官网,搜索容器,找到容器与镜像服务。
进入容器与镜像服务页面,点击镜像加速器。

依据页面的提示,在Terminal中输入以下指令:

4.1.执行以下命令,打开 /etc/docker/daemon.json 配置文件。

vim /etc/docker/daemon.json

4.2 按 i 切换至编辑模式,添加以下内容,并保存。

{"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}

4.3 执行以下命令,重启 Docker 即可。示例命令以 CentOS 7 为例。

sudo systemctl restart docker

5.测试HelloWorld镜像

在Terminal中输入docker run hello-world,如下表示 Docker成功安装~


[root@VM-8-7-centos server]# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
719385e32844: Pull complete
Digest: sha256:88ec0acaa3ec199d3b7eaf73588f4518c25f9d34f58ce9a0df68429c5af48e8d
Status: Downloaded newer image for hello-world:latestHello from Docker!
This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon.2. The Docker daemon pulled the "hello-world" image from the Docker Hub.(amd64)3. The Docker daemon created a new container from that image which runs theexecutable that produces the output you are currently reading.4. The Docker daemon streamed that output to the Docker client, which sent itto your terminal.To try something more ambitious, you can run an Ubuntu container with:$ docker run -it ubuntu bashShare images, automate workflows, and more with a free Docker ID:https://hub.docker.com/For more examples and ideas, visit:https://docs.docker.com/get-started/
http://www.dinnco.com/news/86158.html

相关文章:

  • 用自己电脑做网站服务器-phpstudy+花生壳如何建立网站 个人
  • 百度不收录的网站网站优化就是搜索引擎优化
  • 网站制作老了各种推广平台
  • 网站手机端打不开海外市场推广做什么的
  • 温州网站开发定制网络营销的含义是什么
  • 建站时长是什么原因造成的chrome官网
  • 网站推广教程优化整站站长之家素材
  • 珠海移动网站设计今日早间新闻
  • 网站调用数据库搜索引擎入口官网
  • 做年会的网站合肥头条今日头条新闻最新消息
  • 企业网站案例展示代码编程教学入门
  • vs做的本地网站seo诊断分析工具
  • 购物网站的商品展示模块移动端关键词优化
  • 宁波seo服务快速推广seo推广优化多少钱
  • 制作系部网站首页百度搜索风云榜总榜
  • 商丘做网站it教育培训机构排名
  • 网站图片地址怎么做的新闻软文自助发布平台
  • 微信网站模版下载上海网站制作
  • 网站都是怎么做的怎么在网上销售
  • 南通网站建设 南大街seo方案书案例
  • 可以用来做视频网站的视频外链吗东莞网络推广公司
  • 做网站有没有效果网站推广途径和推广要点有哪些?
  • 网站建设基本步骤二次感染即将大爆发
  • 求个网站这么难吗2021年长沙百度地图
  • 网站推广人员怎么算业绩yandex网站推广
  • 没有网站怎么做推广国际重大新闻事件2023
  • wordpress新浪微博图床搜索广告优化
  • 罗湖网站建设费用黑帽seo工具
  • 企业网站的建设流程包含哪些环节?百度关键词优化方法
  • 手机编码制网站班级优化大师免费下载