CentOS7默认的防火墙不是iptables,而是firewalle.要停止firewall systemctl disable firewalld.service systemctl stop firewalld.service systemctl status firewalld.servic ...
分类:
其他好文 时间:
2020-06-26 12:28:47
阅读次数:
61
etcd是coreOS使用golang开发的分布式,一致性的kv存储系统,因其易用性和高可靠性被广泛运用于服务发现、消息发布和订阅、分布式锁和共享配置等方面,也被认为是zookeeper的强有力的竞争者。作为分布式kv,其底层使用raft算法实现多副本数据的强一致性。etcd作为raft开源实现的标 ...
分类:
其他好文 时间:
2020-06-24 21:47:54
阅读次数:
74
添加本地域名解析 sudo gedit /etc/hosts 127.0.0.1 mail .test.lab test sudo gedit /etc/hostname test 重启后用以下命令检测是否生效hostnamehostname -f 安装postfix sudo apt-get in ...
分类:
其他好文 时间:
2020-06-24 20:09:02
阅读次数:
58
第一种办法sudo spctl --master-disable(安全与隐私中允许任何来源的应用安装) 若是第一种还打不开,sudo xattr -r -d com.apple.quarantine空格加上finder中打不开的应用路径(直接拖进终端) ...
分类:
其他好文 时间:
2020-06-24 17:50:13
阅读次数:
60
gzip配置的常用参数 gzip on|off; #是否开启gzip gzip_buffers 32 4K| 16 8K #缓冲(压缩在内存中缓冲几块? 每块多大?) gzip_comp_level [1-9] #推荐6 压缩级别(级别越高,压的越小,越浪费CPU计算资源) gzip_disable ...
分类:
Web程序 时间:
2020-06-24 16:04:51
阅读次数:
61
在使用注册中心Zookeeper时注意关闭linux防火墙,windows防火墙。 1.关闭linux防火墙 (1)停止防火墙服务:systemctl stop firewalld.service (2)禁止firewall开机启动:systemctl disable firewalld.servi ...
分类:
其他好文 时间:
2020-06-23 21:02:27
阅读次数:
52
当进行表单提交操作时,提交错误信息没有警告,直接发生了跳转。 js函数 checkform() { windows alert("错误"); return fault;//阻止网页进行跳转 } <form action="" onsubmit=" checkform()">直接发生跳转未进行判断拦截 ...
分类:
其他好文 时间:
2020-06-23 19:31:43
阅读次数:
72
Blob.js: /* eslint-disable */ /* Blob.js * A Blob implementation. * 2014-05-27 * * By Eli Grey, http://eligrey.com * By Devin Samarin, https://github. ...
分类:
其他好文 时间:
2020-06-22 12:21:56
阅读次数:
51
javascript为我们专门提供了一些函数方法来帮我们更优雅的处理函数内部this的指向问题,常用的有bind( )、call( )、apply( )三种方法。 相同点: 都可以改变函数内部的this指向。 区别点: 1、call和apply传递的参数不一样,call传递参数aru1, aru2. ...
分类:
移动开发 时间:
2020-06-21 11:27:31
阅读次数:
55