一、Compose介绍 Compose解决什么问题? 不使用Compose时的缺点: 只能手动操作(build, run)单个容器 无法同时运行多个容器 无法管理多个容器之间的依赖关系 Compose是什么? Compose就是用来定义、运行、管理多个docker容器的工具 - 批量容器编排。其是d ...
分类:
其他好文 时间:
2021-06-07 20:10:37
阅读次数:
0
docker - 离线安装【因为是虚机,在线安装试了很久,各种方法都找了,最后还是没有成功,最后采用离线安装的方式,成了,所以只记录离线安装的方法】 docker一般安装在linux7以上,内核3.1以上。 查看内核: uname -a lsb_release -a 安装文件下载地址:https:/ ...
分类:
系统相关 时间:
2021-06-07 20:08:47
阅读次数:
0
#include <iostream>#include<string>#include <vector>#include <map>using namespace std; int main(){ vector<int> bgX{5, 10}; //方法1 bgX.erase(bgX.begin() ...
分类:
编程语言 时间:
2021-06-06 19:46:16
阅读次数:
0
拉取redis镜像 docker pull redis 创建redis容器 docker create --name redis-node1 --net host -v /data/redis-data/node1:/data redis --cluster-enabled yes --cluste ...
分类:
其他好文 时间:
2021-06-06 19:28:17
阅读次数:
0
这么简洁的题目当然不用数位 DP 啦。 将 \(n\) 搞成 \(10\) 的幂次之和计算。枚举后缀长度 \(i\),考虑它的贡献,因为不能填 \(7\) 也不用考虑前导零所以就是 \(9^i\)。 然后乘上 \(n-i\) 位置上的数字能取到的数量即可。 code: #include<bits/s ...
分类:
其他好文 时间:
2021-06-06 19:26:26
阅读次数:
0
readme.so 官方是提供了docker 构建的,搜索了下发现暂时还没有docker镜像就自己搞了一个 参考使用 docker run -d -p 3000:3000 dalongrong/readme.so 效果 说明 已经推送docker官方了,可以直接使用 参考资料 https://git ...
分类:
其他好文 时间:
2021-06-06 19:07:03
阅读次数:
0
一、简介 cgroups 的全称是control groups,是Linux内核提供的一种可以限制、记录、隔离进程组所使用的物理资源(包括:CPU、memory、IO等),可以对 cpu,内存等资源实现精细化的控制,目前越来越火的轻量级容器 Docker 就使用了 cgroups 提供的资源限制能力 ...
分类:
其他好文 时间:
2021-06-06 19:06:23
阅读次数:
0
题目—01字符串 (shiyancang.cn) 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int main() 5 { 6 string a="0"; 7 int n; 8 cin>>n; 9 string ans=""; 10 if ...
分类:
其他好文 时间:
2021-06-06 19:01:00
阅读次数:
0
题目—吉祥物 (shiyancang.cn) 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n,x; 4 int pos(int n) 5 { 6 int s=1,j=1; 7 while(s<n) 8 { 9 s+=j++; 10 } ...
分类:
其他好文 时间:
2021-06-06 18:58:39
阅读次数:
0
1,拉取镜像 docker pull nacos/nacos-server:1.3.2 docker images | grep nacos-server 2,运行容器 docker run --name nacos-server -e MODE=standalone -e MYSQL_SERVIC ...
分类:
数据库 时间:
2021-06-05 18:34:43
阅读次数:
0