kube-system:是 namespace 名称 1、查看命名空间 kubectl get all -n kube-system 2、删除deployment(先删除deployment,删除后replicaset.apps 和 pod 自动就被删除了) kubectl delete deplo ...
分类:
其他好文 时间:
2020-11-21 11:45:05
阅读次数:
4
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin ...
分类:
其他好文 时间:
2020-11-20 12:00:39
阅读次数:
9
环境准备1、在运行Ceph守护进程的节点上创建一个普通用户,ceph-deploy会在节点安装软件包,所以你创建的用户需要无密码sudo权限。如果使用root可以忽略。为赋予用户所有权限,把下列加入/etc/sudoers.d/cephecho"cephALL=(root)NOPASSWD:ALL"|tee/etc/sudoers.d/cephsudochmod0440/etc/sudoers.d
分类:
其他好文 时间:
2020-11-20 11:18:39
阅读次数:
6
我之前看Promise,里面有个方法叫all,因为接口是异步的,当你的业务必须拿到几个不同接口的所有数据后,再进行比较或者逻辑操作,这个时候就可以用到这个方法。 此处贴上示例代码,是以Vue2为框架的背景下: // 搭配async await 进一步优化 // 接口1 async getA(){ / ...
分类:
Web程序 时间:
2020-11-18 12:33:36
阅读次数:
17
1.使用命令sudo visudo,编辑/etc/sudoers文件 2.在%sudo ALL=(ALL:ALL) ALL 下面添加 blue ALL=(ALL) NOPASSWD:ALL 注:blue是我的用户名,改成你自己的,这行也可直接复制过去后修改用户名 3.CTRL + X退出,提示是否保 ...
分类:
系统相关 时间:
2020-11-17 13:01:15
阅读次数:
40
日志记录器(Logger)的行为是分等级的。如下表所示: 分为:OFF、FATAL、ERROR、WARN、INFO、DEBUG、ALL 默认情况下,spring boot从控制台打印出来的日志级别只有INFO及以上级别,可以配置日志级别 # 设置日志级别 logging.level.root=WAR ...
分类:
其他好文 时间:
2020-11-17 12:12:43
阅读次数:
6
1复制文件&文件夹cp常用选项-i如果目标已存在,覆盖前提示是否覆盖,一般默认[root@centos7dir1]#aliascpaliascp=‘cp-i‘-n不覆盖,注意两者顺序-r,-R递归复制目录及内部的所有内容-a归档,相当于-dR--preserv=all,常用于备份功能-d--no-dereference--preserv=links不复制原文件,只复制链接名
分类:
系统相关 时间:
2020-11-16 13:00:34
阅读次数:
16
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:
其他好文 时间:
2020-11-13 13:21:44
阅读次数:
33
1.建表部分网上资料很多,此处不赘述 2.查询数据,传给前端 def userList(request): if request.is.ajax(): user=User.objects.values().all() user_list=list(user) response=JsonRespons ...
分类:
数据库 时间:
2020-11-13 12:17:09
阅读次数:
23
clc;close all;clear; x =linspace(0,4*pi,10); y = x.^2.*sin(x); figure hold on plot(x,y,'b-','linewidth',2) plot(x,y,'r^','linewidth',2) xlabel('x (sec ...
分类:
其他好文 时间:
2020-11-11 16:00:21
阅读次数:
5