logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

QObject::moveToThread: Current thread is not the object`s thread. Cannot move to target thread

如果遇到这种情况,那么说明你的ubuntu环境下已经安装了QT了。其实这个只是一个warning,我们完全可以忽略掉。但是如果你有强迫症的话,而且不需要QT的话,那么可以继续往下看了,但是如果你平时需要QT,那么就不要看下去了,就继续忍受python-opencv报的warning错了,其实也没啥。或者是自己使用QT去配置opencv,而不是去使用python-opencv。如果你像我一样,只是傻

ubuntu vim利用pydiction配置tensorflow自动补全

ubuntu vim 利用Pydiction实现tensorflow自动补全一.下载Pydiction直接去官网,把源码clone下来$ cd ~/.vim/plugged#我这里的是安装在plugged下了,没有按照官网的来,放在~/.vim/bundle下,因为我的.vim下没有bundle,所以我这里选择的是plugged下zailushang1@ubuntu:~/.vim$ lsautol

#vim#ubuntu#tensorflow
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
    共 16 条
  • 1
  • 2
  • 请选择