docker: process_linux.go:297: getting the final child’s pid from pipe caused \”EOF\””: unknown报错

在centos7上运行容器时报错:

解决: 设置内核参数:

记录了允许创建的user namespace数量,我的centos7默认是0修改之后就好了。

申请免费SSL证书并配置网站

首先登录https://freessl.cn/, 填写域名, 免费的域名只能填一个, 不能填写多个, 选择亚洲诚信, 可以免费使用一年 下一步填写邮箱, 证书类型选择ECC, 验证类型选择文件验证(DNS验证不知为何不好使), CSR生成选择浏览器生成:   确认创建, 在网站服务器上临时更改一下nginx配置, 先下载文件, 将文件拷贝到服务器网站根目录的下面目录(需要创建文件夹) : .well-known/pki-validation/fileauth.txt, 确认网站可以访问此文件且记录值一致, 就可以直接点击验证, 验证通过后就可下载证书文件 证书文件下载解压完后有两个文件, 分别是full_chain.pem和private.key, 将此证书文件夹拷贝到服务器nginx目录: /usr/local/nginx/conf/cert/ (需要创建文件夹cert) 配置网站:

确认443端口没有被占用, 重启下nginx即可

安装python模块常见错误及解决方式

安装python模块常见错误 matplotlib报错_tkinter.TclError: no display name and no $DISPLAY environment variable

#交互式测试,此时报错 解决办法,在引用后添加下面这一行

例如:

报错: c/_cffi_backend.c:15:10: fatal error: ffi.h: 没有那个文件或目录 #include <ffi.h> ^~~~~~~ compilation terminated. error: command ‘gcc’ failed with exit status 1 解决:

报错:build/temp.linux-x86_64-3.4/_openssl.c:423:30: fatal error: openssl/opensslv.h: No such file or directory

安装MySQL-python时报错ModuleNotFoundError: No module Read more…

删除K8s Namespace时卡在Terminating状态

想要删除K8s里的一个Namespace,结果删除了所有该Namespace资源之后使用kubectl delete namespace test发现删除不掉,一直卡在Terminating状态,使用–force参数依然无法删除,报错: Error from server (Conflict): Operation cannot be fulfilled on namespaces “test”: The system is ensuring all content is removed from this namespace. Upon completion, this namespace will automatically be purged by the system. 找了一圈,发现这个Issue,里面有条评论 kubectl get namespace annoying-namespace-to-delete -o json > tmp.json then edit tmp.json and Read more…

pip 安装graphviz

pip安装graphviz时报如下错: ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Max retries exceeded with url: /packages/17/51/d6de512dbbbab95f0adb53fb2a4396b79722f7c3fbe8ecc2d8c6ab7de00a/graphviz-0.12-py2.py3-none-any.whl (Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)’),)) 解决: pip install graphviz –trusted-host=pypi.python.org –trusted-host=pypi.org –trusted-host=files.pythonhosted.org 参考: https://github.com/pypa/pip/issues/5363