随笔分类 -  运维开发

摘要:卸载ssh,再安装ssh sudo apt-get remove --purge openssh-server ## 先删ssh sudo apt-get install openssh-server ## 在安装ssh sudo rm /etc/ssh/ssh_config sudo servic 阅读全文
posted @ 2023-10-23 15:17 请务必优秀 阅读(574) 评论(0) 推荐(0) 编辑
摘要:问题背景 在清理空间的时候误删service项目,导致openstack环境无法使用 dashboard登录账户,出现无法获取使用信息等错误 在命令行查看各种服务,出现HTTP503 [root@node06 ~]# cinder service-list ERROR: The server is 阅读全文
posted @ 2022-10-28 15:36 请务必优秀 阅读(1222) 评论(0) 推荐(0) 编辑
摘要:prometheus告警流程分析 以 sum(rate(coredns_dns_requests_total[1m])) > 100 为例 alert和record复用大部分逻辑 prometheus根据配置文件中拿到规则 解析规则查询本地存储或远端存储(带触发条件),trigger在存储端 返回一 阅读全文
posted @ 2022-10-05 22:50 请务必优秀 阅读(1090) 评论(0) 推荐(0) 编辑
摘要:配置yum源 sudo tee /etc/yum.repos.d/mongodb-org-4.4.repo<<'EOF' [mongodb-org-4.0] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$re 阅读全文
posted @ 2022-04-02 21:09 请务必优秀 阅读(260) 评论(0) 推荐(0) 编辑
摘要:备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 设置阿里云 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun 阅读全文
posted @ 2022-04-02 16:36 请务必优秀 阅读(260) 评论(0) 推荐(0) 编辑
摘要:NeoVim 是基于 Vim 的一个 fork 分支,它主要解决了 Vim8 之前版本中的异步执行、开发模式等问题,对 Vim 的兼容性很好。同时对 vim 的代码进行了大量地清理和重构,去掉了对老旧系统的支持,添加了新的特性。 虽然 Vim8 后来也新增了异步执行等特性,在使用层面两者差异不大,但 阅读全文
posted @ 2022-04-02 13:41 请务必优秀 阅读(3393) 评论(0) 推荐(0) 编辑
摘要:编译的时候报错需要g++ 解决方法: yum install gcc-c++ 阅读全文
posted @ 2022-04-01 23:20 请务必优秀 阅读(198) 评论(0) 推荐(0) 编辑
摘要:解决方法: yum install autoconf automake libtool 再重新执行 阅读全文
posted @ 2022-04-01 23:13 请务必优秀 阅读(1530) 评论(0) 推荐(0) 编辑
摘要:执行git clone的时候出现报错 git: 'remote-http' is not a git command. See 'git --help' 解决 yum install libcurl-devel yum install curl-devel 再将git进行重新编译,即可解决 阅读全文
posted @ 2022-04-01 22:23 请务必优秀 阅读(8698) 评论(0) 推荐(0) 编辑
摘要:进行源码编译的时候报错 cache.h:21:18: fatal error: zlib.h: No such file or directory #include <zlib.h> ^ compilation terminated. make: *** [fuzz-commit-graph.o] 阅读全文
posted @ 2022-04-01 21:27 请务必优秀 阅读(4714) 评论(0) 推荐(2) 编辑
摘要:sudo apt-get update sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common 添加国内镜像GPG证书 curl -fsSL http://mirrors. 阅读全文
posted @ 2022-03-17 12:36 请务必优秀 阅读(996) 评论(0) 推荐(0) 编辑
摘要:在使用ubuntu系统时遇到,执行以下即可: apt-get -y install sudo 阅读全文
posted @ 2022-03-17 12:03 请务必优秀 阅读(2271) 评论(0) 推荐(0) 编辑
摘要:VMware开启的虚拟机、安卓模拟器与wsl2、Docker Desktop for Windows不能共同使用,有兼容性问题 暂时找到的解决方案如下: 用完VMware或者模拟器,开始用wsl2 启用 hyper-v bcdedit /set hypervisorlaunchtype auto d 阅读全文
posted @ 2022-02-04 18:23 请务必优秀 阅读(2177) 评论(0) 推荐(0) 编辑
摘要:报错信息 Docker.ApiServices.WSL2.WslKernelUpdateNotInstalledException: 引发类型为“Docker.ApiServices.WSL2.WslKernelUpdateNotInstalledException”的异常。 在 Docker.Ap 阅读全文
posted @ 2022-01-10 23:24 请务必优秀 阅读(1131) 评论(0) 推荐(0) 编辑
摘要:如果只需要获取node和pod的metrics,安装metrics-server就够了,如果要安装prometheus-operator,则不需要安装metrics-server,里边自带 curl -SLO https://addons.kuboard.cn/metrics-server/0.3. 阅读全文
posted @ 2021-11-05 11:16 请务必优秀 阅读(825) 评论(0) 推荐(0) 编辑
摘要:1、部署MySQL mysql容器启动 docker run -p 3306:3306 --name mysql-01 \ -v /mydata/mysql/log:/var/log/mysql \ -v /mydata/mysql/data:/var/lib/mysql \ -v /mydata/ 阅读全文
posted @ 2021-10-04 18:58 请务必优秀 阅读(261) 评论(0) 推荐(0) 编辑
摘要:编写一个简单的Spring Boot应用,使用redis统计访问次数,并打包镜像,运行到容器,点击链接获取代码 在服务器上创建redis容器的挂载目录如下: [root@centos dockerdata]# tree . └── redis ├── data │ ├── appendonly.ao 阅读全文
posted @ 2021-10-02 22:22 请务必优秀 阅读(479) 评论(0) 推荐(0) 编辑
摘要:nginx docker pull nginx:1.19.3-alpine docker run -itd --name nginx -p 80:80 nginx:1.19.3-alpine 进入容器 docker exec -it nginx sh 查看html目录 cd /usr/share/n 阅读全文
posted @ 2021-08-17 23:33 请务必优秀 阅读(141) 评论(0) 推荐(0) 编辑
摘要:新建并启动容器 docker run -it --rm -p 8080:8080 tomcat:9.0.20-jre8-alpine -d, --detach=false: 后台运行容器,并返回容器ID -i, --interactive=false: 以交互模式运行容器,通常与 -t 同时使用 - 阅读全文
posted @ 2021-08-17 16:20 请务必优秀 阅读(255) 评论(0) 推荐(0) 编辑
摘要:pull 下载镜像 docker pull tomcat:9.0.20-jre8 images 列出本机已有镜像 docker images docker image ls 清理镜像(临时的、没有被使用的镜像文件) docker image prune 常用参数 -a, --all : 删除所有没有 阅读全文
posted @ 2021-08-17 14:51 请务必优秀 阅读(90) 评论(0) 推荐(0) 编辑

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