随笔分类 -  Linux-Basic

摘要: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 代码诠释的世界 阅读(1710) 评论(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 代码诠释的世界 阅读(704) 评论(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 代码诠释的世界 阅读(4160) 评论(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、环境 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 代码诠释的世界 阅读(1538) 评论(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 代码诠释的世界 阅读(4145) 评论(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 代码诠释的世界 阅读(2053) 评论(0) 推荐(0) 编辑
摘要:参考链接: http://events.jianshu.io/p/2405999c7c88 阅读全文
posted @ 2022-08-24 14:13 代码诠释的世界 阅读(58) 评论(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 代码诠释的世界 阅读(3393) 评论(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、场景 远程更新产品版本 2、处理方法 sudo apt-get install expect 参考链接: https://www.codeleading.com/article/80902740372/ 阅读全文
posted @ 2022-08-14 15:38 代码诠释的世界 阅读(630) 评论(0) 推荐(0) 编辑
摘要:1、起因 虚拟机内的docker起不来了, 百度各种查,还是没解决(百度真拉胯),无奈测试需要用, 还是得折腾一下 2、清理docker容器及镜像(报错的话, 相关可能执行不了) 1、删除容器 1)首先需要停止所有的容器 docker stop $(docker ps -a -q) 2)删除所有的容 阅读全文
posted @ 2022-08-10 11:15 代码诠释的世界 阅读(1545) 评论(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 代码诠释的世界 阅读(395) 评论(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、官网 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 代码诠释的世界 阅读(3244) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://nuitka.net/ 2、github https://github.com/Nuitka/Nuitka 3、安装mingw64 https://winlibs.com/ 4、创建python项目 以一个tk小例子 from tkinter import * root = 阅读全文
posted @ 2022-07-30 16:56 代码诠释的世界 阅读(4359) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://www.fit2cloud.com/metersphere/index.html 2、文档 https://metersphere.io/docs/ https://github.com/metersphere/metersphere 3、环境 windwos10 jdk 阅读全文
posted @ 2022-07-28 16:44 代码诠释的世界 阅读(2015) 评论(0) 推荐(0) 编辑

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