1、查看详细的使用 docker system df -v 2、查看docker目录大小 du -hs /var/lib/docker/ 3、清理磁盘,删除关闭的容器、无用的数据卷和网络 docker system prune docker system prune -a 清理的更彻底 ...
分类:
其他好文 时间:
2021-05-25 18:43:04
阅读次数:
0
需求: 1、用户"wangqing"可以查看default、kube-system 两个namespace下的pod以及pod日志权限 2、用户"xiaowang"可以在default这个namespace下pod执行命令,并且可以删除pod 一、Serviceaccount服务账户和命名空间; 首 ...
分类:
其他好文 时间:
2021-05-25 18:42:28
阅读次数:
0
二维数组可以直接看做是一个几行几列 而且可以是分别显示在行列中的一个矩阵 int[][] arr= new int[4][];//定义一个行数为4的二维数组for (int i = 0; i <4 ; i++) { arr[i] = new int[4-i];//每列的的长度为4-i for (in ...
分类:
编程语言 时间:
2021-05-25 18:32:56
阅读次数:
0
public class Point { int x; int y; public Point(int x0, int y0) { super(); this.x = x0; this.y = y0; } public Point() { super(); } public void movePoi ...
分类:
其他好文 时间:
2021-05-25 18:20:04
阅读次数:
0
以下配置为个人开发环境VS2019的NuGet进行的配置 1. NuGet 仅支持 HTTP 代理,Visual Studio 的 NuGet 配置文件位于 %appdata%\NuGet\NuGet.Config 2. 在 <configuration> 节下增加 <config> 节,添加 ht ...
分类:
其他好文 时间:
2021-05-25 18:18:08
阅读次数:
0
C# 获取GUID using System; namespace GUID测试 { class Program { static void Main(string[] args) { //产生一个新的GUID并输出 Console.WriteLine(System.Guid.NewGuid()); ...
Jdbc连接数据库1.建立与数据库的连接1.1导入jdbc包1.2加载JDBC驱动java.lang.Class.forName(JDBCDriverClass);Class.forName(driver);MySQL的加载驱动Class.forName(com.mysql.jdbc.Driver) ...
分类:
数据库 时间:
2021-05-25 18:04:43
阅读次数:
0
环境:1主1从,Manager放在从库。主库:192.168.0.10从库:192.168.0.20 两台机器的mysql安装完成初始化以后进行复制搭建,首先登录主库(192.168.0.10),查看pos点:mysql> show master status; 然后在主库(192.168.0.10 ...
分类:
其他好文 时间:
2021-05-25 18:01:54
阅读次数:
0
public class ForDemo2 { public static void main(String[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { System.out.print(i+ "*" ...
分类:
其他好文 时间:
2021-05-25 17:50:06
阅读次数:
0
Mac本身安装了ssh服务,但是默认情况下不会开机自启,因此当我们需要用到ssh相关的功能时,只需以下一条命令即可。 1、启动sshd服务 sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist 2、查看是否启动 sudo lau ...
分类:
系统相关 时间:
2021-05-25 17:36:11
阅读次数:
0