会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码诠释的世界
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
21
22
23
24
25
26
27
28
29
···
52
下一页
2022年8月31日
【centos7】网卡开机启动与配置静态ip
摘要: 1、使用ip addr查看ip 2、查看路由 3、设置开机启动 vi /etc/sysconfig/network-scripts/ifcfg-ens33 ONBOOT=yes TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=dhc
阅读全文
posted @ 2022-08-31 14:19 代码诠释的世界
阅读(698)
评论(0)
推荐(0)
2022年8月29日
【k8s】使用k8s部署一个简单的nginx应用
摘要: 1、 创建命令空间 kubectl create namespace test 2、编辑 nginx-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx namespace: test labels:
阅读全文
posted @ 2022-08-29 16:48 代码诠释的世界
阅读(1759)
评论(0)
推荐(0)
【k8s】v1.23.1安装dashboard
摘要: 1、dashboard官网 https://github.com/kubernetes/dashboard/releases 2、安装(k8s-v1.23.1) kubernetes-dashboard.yaml apiVersion: v1 kind: Secret metadata: label
阅读全文
posted @ 2022-08-29 16:20 代码诠释的世界
阅读(897)
评论(0)
推荐(0)
【ubuntu】解决Could not get lock /var/lib/dpkg/lock-frontend
摘要: 1、问题 在执行一键安装k8s, ssh到其他节点更新apt源, 我手动执行update的时候,报的这个错 2、处理方法 ps aux|grep apt 找出对应的进程id, 然后kill sudo kill 3374 重新执行更新即可 参考链接: https://blog.csdn.net/ABC
阅读全文
posted @ 2022-08-29 14:56 代码诠释的世界
阅读(74)
评论(0)
推荐(0)
【ubuntu18.04 Server】解决Failed to restart network.service: Unit network.service not found.
摘要: 1、问题 配置静态IP时,报错Failed to restart network.service: Unit network.service not found. 2、解决办法 sudo apt-get install network-manager 参考链接: https://blog.csdn.
阅读全文
posted @ 2022-08-29 14:37 代码诠释的世界
阅读(4574)
评论(0)
推荐(0)
【ubuntu 18.04 Server】配置root密码,并设置远程访问
摘要: 1、设置root密码 使用具有root权限的账户执行 sudo passwd root 2、配置远程ssh访问 sudo apt-get install openssh-server 编辑配置文件 sudo vim /etc/ssh/sshd_config 修改或添加PermitRootLogin
阅读全文
posted @ 2022-08-29 12:32 代码诠释的世界
阅读(245)
评论(0)
推荐(0)
【k8s】ubuntu18.04 server安装k8s版本1.23.1过程
摘要: 1、官网 https://kubernetes.io/zh-cn/ 2、github https://github.com/kubernetes/kubernetes 3、文档 Kubernetes Documentation | Kubernetes 二进制下载 Download Kubernet
阅读全文
posted @ 2022-08-29 11:38 代码诠释的世界
阅读(1215)
评论(0)
推荐(0)
2022年8月24日
【pycharm】社区版给函数生成注释
摘要: 1、打开要提前加注释的函数 2、双击选中函数名,右键 3、点击【show Context Actions】 4、点击【insert a documentation string sub】 5、然后添加函数说明和参数说明即可
阅读全文
posted @ 2022-08-24 20:05 代码诠释的世界
阅读(287)
评论(0)
推荐(0)
【python】根据进程名获取pid, 并杀死进程
摘要: 1、pypi https://pypi.org/project/psutil/ 2、github https://github.com/giampaolo/psutil 3、doc https://psutil.readthedocs.io/en/latest/ 4、获取chromedriver.e
阅读全文
posted @ 2022-08-24 16:30 代码诠释的世界
阅读(1568)
评论(0)
推荐(0)
【java】使用opencv获取摄像头并推流
摘要: 1、环境 OSX 12.5 Java8 vscode 2、脚本 JavaCvCameraTest.java import javax.swing.JFrame; import org.bytedeco.ffmpeg.global.avcodec; import org.bytedeco.javacp
阅读全文
posted @ 2022-08-24 15:35 代码诠释的世界
阅读(1707)
评论(0)
推荐(0)
上一页
1
···
21
22
23
24
25
26
27
28
29
···
52
下一页
公告