logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this Tensor

其实这个也不是错误,这个只是一个tensorflow的warning而已,如果你不想去看到这个warning,其实就是给它创建一个环境变量就好了:export TF_CPP_MIN_LOG_LEVEL=2这样就好了,但是因为这个只是临时创建的,所以我们需要创建一个永久性的环境变量的话,只需要这样做:#第一种方法:sudo vim ~/.bashrc#在最后面加上一行export TF_CPP_MI

ubuntu删除内核,安装内核方法

删除内核:1.dpkg --get-selections | grep linux #查看自己已经安装的内核有那些比如我想卸载linux-headers-4.15.0-128-lowlatency,那么接下来用这个命令卸载:2.sudo apt-get purge linux-headers-4.15.0-128-lowlatency linux-image-4.15.0-128-lowlaten

#ubuntu
K8s替换成指定版本的版本

首先卸载所有的kube插件:sudo apt-get remove -y kubelet kubeadm kubectl接着,搜索一下你想要的版本是多少:sudo apt-cache madison kubeadm然后接着就是安装,比如我想安装的是1.17.3.00sudo apt-get install -y kubelet=1.17.3-00 kubeadm=1.17.3-00 kubectl

k8s一些常用的小细节

1.kubectl edit使用的编辑器修改直接创建一个环境变量KUBE_EDITOR(或者是EDITOR和GIT_EDITOR),然后kubectl就会根据这个环境变量的值去选择你的编辑器的。比如:export KUBE_EDITOR="vim"那么就会使用vim来打开相应的文件。2networkPlugin cni failed to set up pod "coredns-58cc8c89f

/proc/sys/net/bridge/bridge-nf-call-iptables does not exist k8s

出现错误:ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist解决方法:modprobe br_netfilterecho 1 > /proc/sys/net/bridge/bridge-nf-ca

K8s 创建Pod 的时候出现 Error: Error response from daemon: No command specified

我使用的kubectl版本是1.17.3,docker的版本是18.03.0-ce。然后在使用kubectl apply -f my-deployment.yaml创建一个Deployment的时候出现Error: Error response from daemon: No command specified。经过一段时间的搜索资料,发现是我的yaml文件中缺少了一个字段的内容。缺少的字段就是c

#kubernetes
k8s中node节点出现NotReady状态的解决方法之一

如果在describe node中发现cni config uninitialized KubeletNotReady runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitial

Get http://localhost:10248/healthz: dial tcp 127.0.0.1:10248: connect: connection refused.

因为标题放不下完整的k8s初始化的错误信息,所以在文章内容中写一下完整的错误信息,可以给读者一个很好的错误信息对照参考[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get http://localhost:10248/healthz: dial

#kubernetes
利用python上传下载ftp服务器中的数据

下载:#!/usr/bin/env python# coding=utf-8from ftplib import FTPlocalhost = "your_ip_address"port = 21ftp = FTP()ftp.set_debuglevel(2)ftp.connect(localhost,port)ftp.login("ftp_username","ftp_pswd")ftp.cwd

EnvironmentError: mysql_config not found

if meet the error when you :pip install mysql-pythonthen you can use this to solve your problem:sudo apt-get install libmysqlclient-dev

    共 14 条
  • 1
  • 2
  • 请选择