本次采用三台centos7服务器进行同步演示. 结构图如下 提示:三台服务器都先允许873端口的防火墙配置 [root@localhost rsync]# iptables -I INPUT -p tcp --dport 873 -j ACCEPT 一、源服务器配置 1、安装rsync [root@ ...
分类:
系统相关 时间:
2020-03-02 23:08:38
阅读次数:
94
查看多核CPU命令 mpstat -P ALL 和 sar -P ALL 说明:sar -P ALL > aaa.txt 重定向输出内容到文件 aaa.txt top命令 经常用来监控linux的系统状况,比如cpu、内存的使用,程序员基本都知道这个命令,但比较奇怪的是能用好它的人却很少,例如top ...
分类:
系统相关 时间:
2020-03-02 18:55:13
阅读次数:
76
watch: { healthData: { deep: true, // 深度监听 immediate: true, // true的话,不管数据是否有变化,进来就会运行 handler: function(newVal, oldVal){ this.form = newVal; } }, con ...
分类:
其他好文 时间:
2020-03-02 15:12:35
阅读次数:
81
深入浅出 Typescript TypeScript 是 JavaScript 的一个超集,支持 ECMAScript 6 标准。 TypeScript 由微软开发的自由和开源的编程语言。 TypeScript 设计目标是开发大型应用,它可以编译成纯 JavaScript,编译出来的 JavaScr ...
分类:
其他好文 时间:
2020-03-02 10:52:19
阅读次数:
57
A simple examplethe default log of level is WARNING123import logginglogging.warning('Watch out!') logging.info('I told you so') # will not print anyth... ...
分类:
其他好文 时间:
2020-02-28 12:01:44
阅读次数:
100
https://www.youtube.com/watch?v=fwc9vTCLYCc https://www.yangangwang.com/#publication https://www.youtube.com/watch?v=nQZpyJjaLAI https://www.youtube.c ...
分类:
其他好文 时间:
2020-02-28 11:41:19
阅读次数:
240
var vm = new Vue({ el: '#example', data: { message: 'Hello' }, computed: { // 计算属性的 getter reversedMessage: function () { // `this` 指向 vm 实例 return th ...
分类:
移动开发 时间:
2020-02-27 11:39:54
阅读次数:
140
一、造成崩溃的原因 1、代码中存在bug 2、Watchdog 超时机制 3、用户强制退出 4、低内存终止 5、其他违法系统规则的操作,大部分是内存问题 二、崩溃的类型 1、EXC_BAD_ACCESS 2、SIGSEVG ...
分类:
移动开发 时间:
2020-02-26 21:16:18
阅读次数:
322
文件移动 import os # from main import run #import shutil path_to_watch = r'C:\Users\Administrator\Desktop\test\path_to_watch' # file_path = r"C:\Users\Adm ...
分类:
编程语言 时间:
2020-02-26 19:18:14
阅读次数:
83
一、 计算属性(computed) 1.计算属性是为了模板中的表达式简洁,易维护,符合用于简单运算的设计初衷。 例如: <p id="app"> {{ myname.substring(0,1).toUpperCase() + myname.substring(1) }} </p> 运算过于复杂,冗 ...
分类:
其他好文 时间:
2020-02-25 12:43:10
阅读次数:
81