摘要: k8s子节点加入集群中时报错 [preflight] Running pre-flight checks [preflight] Reading configuration from the cluster... [preflight] FYI: You can look at this confi 阅读全文
posted @ 2021-08-27 17:49 iceman! 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 第一步:打开ipaddress.com,查询如下两个域名,并分别记录下其对应的ip:1、github.com2、github.global.ssl.fastly.net 第二步:更新host文件192.30.253.112 github.com151.101.185.194 github.globa 阅读全文
posted @ 2020-07-03 17:12 iceman! 阅读(3130) 评论(0) 推荐(1) 编辑
摘要: 微信小程序获取手机号码报错,其中python文档中有一段需要引用 ‘Crypto’的库 在windows环境下可能会出现安装失败等原因,可以安装PyCryptodome来替代 阅读全文
posted @ 2019-04-16 16:34 iceman! 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 在Ubuntu上安装软件,不小心升级了pip,导致使用时报错如下 后来发现是因为将pip更新为10.0.0后库里面的函数有所变动造成这个问题。 解决方法如下: 方法一: sudo gedit /usr/bin/pip将原来的 from pip import main改为 from pip._inte 阅读全文
posted @ 2019-03-28 16:25 iceman! 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: 今天在搭建Zookeeper集群的时候,需要频繁启动zookeeper,但是启动的时候,有时会提示下列错误信息: zookeeper需要的地址已经被占用了,其实是因为上一次的zookeeper没有关闭。 我们知道,zookeeper采用的是2181端口来对client提供服务,在启动时候就会监听这个 阅读全文
posted @ 2019-03-26 13:39 iceman! 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 如果是通过 flask 的 request.remote_addr 获取的 ip 都是 127.0.0.1 如果是通过 flask 的 request.remote_addr 获取的 ip 都是 127.0.0.1 如果是通过 flask 的 request.remote_addr 获取的 ip 都 阅读全文
posted @ 2019-03-05 09:41 iceman! 阅读(801) 评论(0) 推荐(0) 编辑
摘要: find /文件夹名称 -name "*.js(文件类型可以是.py, .php)" |xargs cat|grep -v ^$|wc -l 阅读全文
posted @ 2019-02-26 09:20 iceman! 阅读(237) 评论(1) 推荐(0) 编辑
摘要: screen工具是linux下虚拟终端的一个常用工具。在 发现这个工具之前,笔者经常在远程ssh中运行需要长时间处理数据的命令,比如远程编译安装软件,如果在编译的过程中网络断开,那这个编译进程就会停止, 造成想不到的后果。自从有了screen命令,我再也不用怕网线不稳和运行需要长时间处理数据的命令。 阅读全文
posted @ 2018-12-28 09:29 iceman! 阅读(1396) 评论(0) 推荐(0) 编辑
摘要: 添加 adduser [name] 删除 userdel [name] 公钥名字authorized_keys权限 chmod .ssh 700 authorized_keys 600 cd ~mkdir .sshchmod 700 .ssh/cd .sshtouch authorized_keys 阅读全文
posted @ 2018-12-04 12:26 iceman! 阅读(210) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-09-01 14:13 iceman! 阅读(131) 评论(0) 推荐(0) 编辑