1.nacos继承SpirngBoot做配置中心 spring配置文件里:nacos.config.server-addr=127.0.0.1:8848springboot启动类中: @NacosPropertySource(dataId = "cds-node", groupId = "com.w ...
分类:
编程语言 时间:
2020-11-23 12:12:40
阅读次数:
7
ERROR Failed to compile with 4 errors These relative modules were not found: * ../../../public/ueditor/lang/zh-cn/zh-cn.js in ./node_modules/babel-loa ...
分类:
Web程序 时间:
2020-11-23 12:09:09
阅读次数:
11
使用Grafana和Prometheus对Linux服务器性能进行监控,主要通过node_exporter进行监控,指标如 CPU、内存、磁盘等。Prometheus通过HTTP协议从远程的机器收集数据并存储Prometheus本地时序数据库。 一.监测服务器安装node_exporter linu ...
分类:
系统相关 时间:
2020-11-23 12:01:53
阅读次数:
10
作者:HelloGitHub-小鱼干 网络不通怎么办?Ping 就是你的调试大招,而 gping 则是 Ping 的内功,终端可视化显示 Ping 结果,一眼看明数据接收情况。前端调试大招又是什么呢?Faker.js!这个包罗万象的模拟数据工具让你浏览器调试、Node.js 开发如虎添翼,各种模拟数 ...
分类:
其他好文 时间:
2020-11-21 11:57:54
阅读次数:
6
环境:kubernet 将pod分配到指定的节点将pod调度到指定节点有2种方式: 方式一:强制约束Pod调度到指定Node节点上 方式二:通过label-selector机制选择节点 为Node添加label [root@K8s-Master Tools]# kubectl label node ...
分类:
Web程序 时间:
2020-11-20 12:16:14
阅读次数:
23
一、安装环境 1、本机系统:Windows 10 Pro(64位) 2、Node.js:v6.9.2LTS(64位) 二、安装Node.js步骤 1、下载对应你系统的Node.js版本:https://nodejs.org/en/download/ 2、选安装目录进行安装 3、环境配置 4、测试 三 ...
分类:
Web程序 时间:
2020-11-20 12:04:56
阅读次数:
22
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
在实际项目开发中,我们经常需要在项目构建文件监听,已备在项目的源码发生变化时候时,自动重构出新的输出文件。配置代码如下:webpack.config.jsmodule.export={watch:true,watchOption:{ignored:/node_modules///忽略不需要监听的文件aggregationTimeout:300,poll:1000//默认每秒访问1000}}在执行时
分类:
Web程序 时间:
2020-11-20 11:18:24
阅读次数:
11
题目描述 重庆八中在$80$周年校庆的时候获捐$n$个杯子, 每个杯子有两个属性:一个是已装水量$ai$,一个是可装水量$bi$(\(ai <= bi\))。 从一个杯子向另一个杯子倒$x$单位体积的水需要花费的时间是$x$秒。 现在用$n$ 个杯子中的$k$个来装所有的水, 求最小的$k$, 以及 ...
分类:
其他好文 时间:
2020-11-19 12:49:31
阅读次数:
14
众所周知,与原生js不同,jquery方法 $() 会得到一个jquery对象,而不是js对象。 这个方法获取的对象可以用来执行其他jquery方法处理业务逻辑; 也可以通过下标获取js DOM。 当这个方法没有匹配到DOM的时候,则对象里面没有DOM元素。 $("div span").click( ...
分类:
编程语言 时间:
2020-11-19 12:35:01
阅读次数:
8