08 2022 档案

摘要: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 代码诠释的世界 阅读(660) 评论(0) 推荐(0) 编辑
摘要: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 代码诠释的世界 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: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 代码诠释的世界 阅读(702) 评论(0) 推荐(0) 编辑
摘要: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 代码诠释的世界 阅读(37) 评论(0) 推荐(0) 编辑
摘要: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 代码诠释的世界 阅读(4137) 评论(0) 推荐(0) 编辑
摘要: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 代码诠释的世界 阅读(196) 评论(0) 推荐(0) 编辑
摘要: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 代码诠释的世界 阅读(1055) 评论(0) 推荐(0) 编辑
摘要:1、打开要提前加注释的函数 2、双击选中函数名,右键 3、点击【show Context Actions】 4、点击【insert a documentation string sub】 5、然后添加函数说明和参数说明即可 阅读全文
posted @ 2022-08-24 20:05 代码诠释的世界 阅读(227) 评论(0) 推荐(0) 编辑
摘要: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 代码诠释的世界 阅读(1434) 评论(0) 推荐(0) 编辑
摘要: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 代码诠释的世界 阅读(1533) 评论(0) 推荐(0) 编辑
摘要:1、环境 python3 OSX 12.5 vscode 2、安装ffmpeg brew install ffmpeg 3、安装cv2 pip install opencv-python # or pip --default-timeout=100 install opencv-python -i 阅读全文
posted @ 2022-08-24 14:43 代码诠释的世界 阅读(4128) 评论(0) 推荐(0) 编辑
摘要:1、安装ffmpeg brew install ffmpeg 2、查看本机设备 ffmpeg -devices % ffmpeg -devices ffmpeg version 5.1 Copyright (c) 2000-2022 the FFmpeg developers built with 阅读全文
posted @ 2022-08-24 14:27 代码诠释的世界 阅读(2045) 评论(0) 推荐(0) 编辑
摘要:参考链接: http://events.jianshu.io/p/2405999c7c88 阅读全文
posted @ 2022-08-24 14:13 代码诠释的世界 阅读(57) 评论(0) 推荐(0) 编辑
摘要:1、代码 # -*- coding:utf8 -*- import cv2 as cv cap = cv.VideoCapture(0) while (True): hx, frame = cap.read() if hx is False: print('read video error') ex 阅读全文
posted @ 2022-08-24 11:55 代码诠释的世界 阅读(348) 评论(0) 推荐(0) 编辑
摘要:参考链接: https://www.freesion.com/article/97081132512/ 阅读全文
posted @ 2022-08-23 18:02 代码诠释的世界 阅读(96) 评论(0) 推荐(0) 编辑
摘要:1、报错 2、修改IDEA配置 重新打开项目 参考链接: https://blog.csdn.net/liveforyourself/article/details/122059698 阅读全文
posted @ 2022-08-23 16:21 代码诠释的世界 阅读(513) 评论(0) 推荐(0) 编辑
摘要:1、docker hub https://hub.docker.com/r/alfg/nginx-rtmp/ 2、安装 docker pull alfg/nginx-rtmp docker run -it -p 1935:1935 -p 8080:80 --rm nginx-rtmp 测试关闭后删除 阅读全文
posted @ 2022-08-23 15:47 代码诠释的世界 阅读(1073) 评论(0) 推荐(0) 编辑
摘要:1、nginx http://nginx.org/en/ 2、docker-hub https://hub.docker.com/r/alqutami/rtmp-hls https://hub.docker.com/_/nginx 3、github https://github.com/TareqA 阅读全文
posted @ 2022-08-23 15:23 代码诠释的世界 阅读(3364) 评论(0) 推荐(0) 编辑
摘要:1、安装 brew install ffmpeg 2、过程 % brew install ffmpeg HOMEBREW_BREW_GIT_REMOTE set: using https://mirrors.ustc.edu.cn/brew.git for Homebrew/brew Git rem 阅读全文
posted @ 2022-08-23 13:50 代码诠释的世界 阅读(920) 评论(0) 推荐(0) 编辑
摘要:1、docker hub https://hub.docker.com/_/nginx 2、安装 默认配置安装 docker run --name nginx -d nginx 指定端口安装 docker run --name nginx -d -p 8080:80 nginx 文件映射主机安装 # 阅读全文
posted @ 2022-08-23 10:52 代码诠释的世界 阅读(50) 评论(0) 推荐(0) 编辑
摘要:1、使用os.popen 2、使用os.system 3、使用subprocess.Popen 参考链接: https://blog.csdn.net/weixin_43276033/article/details/125481262 https://blog.csdn.net/sirobot/ar 阅读全文
posted @ 2022-08-22 11:20 代码诠释的世界 阅读(30) 评论(0) 推荐(0) 编辑
摘要:1、使用国内的镜像地址 https://registry.npmmirror.com/binary.html?path=chromedriver/ 2、通过simulation模拟用户点击来下载(只贴出部分方法) #!/usr/bin/env python # -*- coding:utf-8 -* 阅读全文
posted @ 2022-08-19 20:49 代码诠释的世界 阅读(275) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://pypi.org/project/requests-html/ 2、github https://github.com/kennethreitz/requests-html 3、安装 pip install requests-html 4、使用HTMLSession hea 阅读全文
posted @ 2022-08-19 14:03 代码诠释的世界 阅读(780) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/ 2、安装 pip install BeautifulSoup4 pip install lxml pip install requests 3、解析脚本 import requests f 阅读全文
posted @ 2022-08-19 13:50 代码诠释的世界 阅读(151) 评论(0) 推荐(0) 编辑
摘要:1、pip install BeautifulSoup报错 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting BeautifulSoup Using cached https://pypi.tuna.tsi 阅读全文
posted @ 2022-08-18 11:58 代码诠释的世界 阅读(770) 评论(0) 推荐(0) 编辑
摘要:1、打开powershell(管理员) 2、查看所有端口连接 3、查看端口进程及PID 4、获取指定PID的进程名称 5、根据PID杀死进程 检查 至此完成 阅读全文
posted @ 2022-08-15 17:36 代码诠释的世界 阅读(605) 评论(0) 推荐(0) 编辑
摘要:1、官网 http://appium.io/ 2、github https://github.com/appium/appium-desktop/releases/tag/v1.22.3-4 3、安装配置java环境 https://www.cnblogs.com/fireblackman/p/10 阅读全文
posted @ 2022-08-14 16:04 代码诠释的世界 阅读(278) 评论(0) 推荐(0) 编辑
摘要:1、场景 远程更新产品版本 2、处理方法 sudo apt-get install expect 参考链接: https://www.codeleading.com/article/80902740372/ 阅读全文
posted @ 2022-08-14 15:38 代码诠释的世界 阅读(629) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://airtest.netease.com/ 2、项目地址 https://github.com/AirtestProject 3、官方文档 欢迎使用 - Airtest Project Docs 4、安装AirtestIDE 解压运行即可 5、设备唤醒 https://jue 阅读全文
posted @ 2022-08-12 15:21 代码诠释的世界 阅读(154) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://httprunner.com/https://httprunner.com/docs/ 2、github https://github.com/httprunner/httprunner https://github.com/httprunner/QuickRunner 3 阅读全文
posted @ 2022-08-12 10:21 代码诠释的世界 阅读(285) 评论(0) 推荐(0) 编辑
摘要:1、查询相关DNS 优先使用https://www.ipaddress.com/ 查出来的结果是(有点用) 140.82.113.4 github.com 199.232.69.194 github.global.ssl.fastly.net 185.199.108.133 raw.githubus 阅读全文
posted @ 2022-08-10 13:57 代码诠释的世界 阅读(45) 评论(0) 推荐(0) 编辑
摘要:1、起因 虚拟机内的docker起不来了, 百度各种查,还是没解决(百度真拉胯),无奈测试需要用, 还是得折腾一下 2、清理docker容器及镜像(报错的话, 相关可能执行不了) 1、删除容器 1)首先需要停止所有的容器 docker stop $(docker ps -a -q) 2)删除所有的容 阅读全文
posted @ 2022-08-10 11:15 代码诠释的世界 阅读(1538) 评论(0) 推荐(0) 编辑
摘要:1、阿里源 https://developer.aliyun.com/mirror/pypi 2、华为源 https://mirrors.huaweicloud.com/home 3、命令行配置 升级pip pip install -i https://pypi.tuna.tsinghua.edu. 阅读全文
posted @ 2022-08-10 10:58 代码诠释的世界 阅读(8613) 评论(0) 推荐(0) 编辑
摘要:1、处理方法 git config --system core.longpaths true 顾名思义,就是支持长的路径 2、官网文档 https://git-scm.com/doc 参考链接: https://blog.csdn.net/qq_42068550/article/details/89 阅读全文
posted @ 2022-08-03 10:21 代码诠释的世界 阅读(216) 评论(0) 推荐(0) 编辑
摘要:1、场景 只有一级目录 2、批处理脚本 CHCP 65001 @ECHO OFF ECHO "####################################################" ECHO "# Subject: update git repo #" ECHO "# Date: 阅读全文
posted @ 2022-08-02 14:50 代码诠释的世界 阅读(382) 评论(0) 推荐(0) 编辑
摘要:参考链接: https://blog.csdn.net/qq_37107304/article/details/103731209 阅读全文
posted @ 2022-08-01 20:06 代码诠释的世界 阅读(101) 评论(0) 推荐(0) 编辑
摘要:1、docker hub https://hub.docker.com/_/mysql 2、创建目录 mkdir -p $HOME/mysql/conf $HOME/mysql/data $HOME/mysql/log 3、编辑配置文件 # 编辑配置文件my.cnf vim my.cnf # 新增配 阅读全文
posted @ 2022-08-01 15:34 代码诠释的世界 阅读(393) 评论(0) 推荐(0) 编辑
摘要:空了再写 参考链接: https://blog.csdn.net/zyndev/article/details/113888620 阅读全文
posted @ 2022-08-01 14:56 代码诠释的世界 阅读(51) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://www.consul.io/docs/guides HTTP API | Consul by HashiCorp 2、docker hub https://hub.docker.com/_/consul/ 3、github https://github.com/hashic 阅读全文
posted @ 2022-08-01 12:06 代码诠释的世界 阅读(428) 评论(0) 推荐(0) 编辑
摘要:1、系统 2、步骤 打开系统偏好设置 打开电池选项 打开电源适配器选项 至此即可 阅读全文
posted @ 2022-08-01 11:32 代码诠释的世界 阅读(668) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11WGU6KG 2、一键替换(更快捷) 备份(备份是个好习惯) sudo cp /etc/apt/sources.list /etc/apt/s 阅读全文
posted @ 2022-08-01 10:26 代码诠释的世界 阅读(3237) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示