一、前置知识点 1.1 生产环境可部署Kubernetes集群的两种方式 目前生产部署Kubernetes集群主要有两种方式: kubeadm Kubeadm是一个K8s部署工具,提供kubeadm init和kubeadm join,用于快速部署Kubernetes集群。 官方地址:https:/ ...
分类:
Web程序 时间:
2020-07-21 22:32:10
阅读次数:
158
####将uniapp的uni.createSelectorQuery()方法与uni.pageScrollTo(OBJECT)方法结合使用 更详细用法见官方文档: uni.createSelectorQuery()方法: https://uniapp.dcloud.io/api/ui/nodes- ...
分类:
移动开发 时间:
2020-07-21 21:25:43
阅读次数:
124
题目链接 点我呀 翻译 给你一个 \(n\) 个节点 \(m\) 条边的图,但是有一些边的方向还没有确定。 问你能否将其中没有确定方向的边确定了,使得最后形成的整张图没有环。 题解 一说就会做的题。 先将已经确定了方向的边作为图的边,然后在这个有向图的基础上跑拓扑排序。 记录下每个节点在拓扑排序中的 ...
分类:
其他好文 时间:
2020-07-21 10:01:08
阅读次数:
65
Count Complete Tree Nodes Given a complete binary tree, count the number of nodes. Note: Definition of a complete binary tree from Wikipedia: In a com ...
分类:
其他好文 时间:
2020-07-20 15:46:54
阅读次数:
80
\(Mancity\) \(Description\) \(Input\) \(Output\) \(Sample Input\) 8 3 6 1 2 1 1 3 2 4 2 5 1 6 1 6 2 4 1 3 3 2 4 4 2 2 5 8 2 \(Sample Output\) 1 0 2 2 ...
分类:
其他好文 时间:
2020-07-20 13:14:51
阅读次数:
67
Given a tree (i.e. a connected, undirected graph that has no cycles) consisting of n nodes numbered from 0 to n - 1 and exactly n - 1 edges. The root ...
分类:
其他好文 时间:
2020-07-20 10:50:59
阅读次数:
70
安装master节点 安装前的准备工作 关闭防火墙和selinux 配置hosts文件 关闭swap:swapoff -a 第一步:下载阿里云的kubernetes,下载地址请找阿里云的。(如下图)http://mirrors.aliyun.com/ vim /etc/yum.repos.d/kub ...
分类:
其他好文 时间:
2020-07-19 23:59:42
阅读次数:
144
指针变量声明:例: int* p1, p2, p3; public static unsafe void swap(int a,int b) { int temp; temp = a; a = b; b = a; } public static unsafe void swapP(int* pa,i ...
使用kubeadm安装KubernetesDlutzhangyi 2019-08-07 23:45:17 979 收藏 5分类专栏: Kubernetes版权使用kubeadm安装Kubernetes 环境准备 基础配置 安装Docker 关闭防火墙 关闭SELinux 关闭swap 配置转发参数 ...
分类:
Web程序 时间:
2020-07-19 18:03:04
阅读次数:
73
本篇主要讲述: 1 磁盘挂载 2 磁盘管理 3 LVM逻辑卷的使用 4 交换分区swap(虚拟内存) 5 RAID 1、磁盘挂载操作 1.1 含义 将光盘,U盘,分区,网络存储等设备装到某个Linux目录。 各种命令工具通过访问Linux目录来操作这些设备。 访问光盘的内容 Windows: 光盘文 ...
分类:
系统相关 时间:
2020-07-19 17:45:26
阅读次数:
151