background picture of the home page

易北河的小破站

陌生人,欢迎来到我的博客

  • prev
  • next

K8S-Day1

1. K8s 是为了解决什么问题出现的和 Docker 有什么关系 随着 Docker 的普及,开发者可以轻松地打包应用为容器并在单台机器上运行。但当容器数量变多、服务之间依赖关系变复杂时,手动管理这些容器变得非常困难。Kubernetes 出现的核心目的就是:自动化部署、扩展和管理容器化应用 和D

thumbnail of the cover of the post

yudao-cloud的中间件手动部署

Mysql的手动安装 1.安装所需的依赖项 使用apt安装以下依赖 - libaio1 - libmecab2 - debconf-utils apt install libaio1 libmecab2 debconf-utils -y 存放Mysql的DEB包 通过debconf-set-sele

thumbnail of the cover of the post

Docker-day5

1. 创建一个docker compose配置,包含两个容器。一个Nginx,一个Mysql。 version: '3.8' services: nginx: image: nginx:latest container_name: my-nginx ports:

thumbnail of the cover of the post

Docker-Day4

1. exec能进入停止的容器中吗 不能通过exec 进入已经停止的容器中。

thumbnail of the cover of the post

Docker-Day3

1. 容器启动时如何指定容器的主机名 通过添加参数--hostname或者-h 2. 如何在容器启动时指定hos

thumbnail of the cover of the post

Docker-Day2

1. 容器中的端口如何映射到宿主机上 在启动容器时,可以通过 -p 参数指定端口映射规则。 示例如下: docker run -d -p <宿主机端口>:<容器内部端口> <镜像名称>

thumbnail of the cover of the post

Python-Day7

1. 什么是异常,如何捕获处理异常,比如捕获“1除以0”的异常 在 Python 中,异常(Exception) 是指程序运行过程中发生的错误。这些错误会中断程序的正常执行流程。 try: result = 1 / 0 except Exception as e: print("

thumbnail of the cover of the post

Docker-Day1

1. 什么是Docker,主要解决什么问题 Docker 是一个容器化平台,解决了应用在不同环境中运行不一致、部署复杂、资源占用高等问题,实现“一次构建,到处运行”。

thumbnail of the cover of the post