会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
缺个好听的昵称
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
9
下一页
2023年12月27日
yum 安装nginx
摘要: yum install -y epel-release yum update -y rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm yum inst
阅读全文
posted @ 2023-12-27 12:18 缺个好听的昵称
阅读(22)
评论(0)
推荐(0)
2023年12月13日
docker-compose-v2.22.0
摘要: wget https://github.com/docker/compose/releases/download/v2.22.0/docker-compose-linux-x86_64 \mv docker-compose-linux-x86_64 /usr/bin/docker-compose c
阅读全文
posted @ 2023-12-13 15:17 缺个好听的昵称
阅读(66)
评论(0)
推荐(0)
2023年11月21日
CentOS 磁盘分区超过2T解决方法
摘要: yum install -y parted fdisk -l parted -s /dev/sdb mklabel gpt parted -s /dev/sdb mkpart primary 2048s 100% mkfs.xfs -f /dev/sdb1 mount /dev/sdb1 /mnt
阅读全文
posted @ 2023-11-21 14:38 缺个好听的昵称
阅读(128)
评论(0)
推荐(0)
2023年11月2日
查询某个进程使用资源情况
摘要: 首先需要查到到进程,centos 使用top,iftop #!/bin/bash if [ $# -ne 1 ]; then echo "用法: $0 <进程ID>" exit 1 fi pid=$1 if ! ps -p $pid &> /dev/null; then echo "进程 $pid
阅读全文
posted @ 2023-11-02 14:43 缺个好听的昵称
阅读(62)
评论(0)
推荐(0)
2023年4月25日
centos 7更改默认网卡名称
摘要: [root@dev1-k8s-node-3 ~]# cd /etc/sysconfig/network-scripts/ [root@dev1-k8s-node-3 network-scripts]# cp ifcfg-ehs192 ifcfg-eth0 [root@dev1-k8s-node-3
阅读全文
posted @ 2023-04-25 10:19 缺个好听的昵称
阅读(66)
评论(0)
推荐(0)
2023年4月8日
部署node_exporter
摘要: 系统服务方式部署: 优点:不依赖其它软件 缺点:端口如果被占用则不可用 wget https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-amd64.tar.gz t
阅读全文
posted @ 2023-04-08 18:17 缺个好听的昵称
阅读(161)
评论(0)
推荐(0)
CentOS 7 关闭IPv6
摘要: 一、编辑/etc/default/grub编辑/etc/default/grub,在GRUB_CMDLINE_LINUX加上的后面句首加上ipv6.disable=1。 修改之前: [root@localhost ~]# cat /etc/default/grub GRUB_TIMEOUT=5 GR
阅读全文
posted @ 2023-04-08 18:13 缺个好听的昵称
阅读(392)
评论(0)
推荐(0)
2023年2月16日
K8S-pod启动一直:ContainerCreating
摘要: kube-system命名空间pod启动一直:ContainerCreating K8S中coredns服务提示: networkPlugin cni failed to set up pod "coredns-c8c45564f-dpwmw_kube-system" network: open /
阅读全文
posted @ 2023-02-16 10:17 缺个好听的昵称
阅读(635)
评论(0)
推荐(0)
2022年12月16日
k8s-pod探针
摘要: 1. 探针 探针分为3种 livenessProbe (存活探针)∶判断容器是否正常运行,如果失败则杀掉容器(不是pod),再根据重启策略是否重启容器 readinessProbe(就绪探针)∶判断容器是否能够进入ready状态,探针失败则进入noready状态,并从service的endpoint
阅读全文
posted @ 2022-12-16 15:14 缺个好听的昵称
阅读(221)
评论(0)
推荐(0)
2022年10月21日
docker 可视化工具
摘要: yml文件 version: "3" services: portainer: image: portainer/portainer:latest container_name: portainer ports: - "9000:9000" volumes: - /data/portainer/da
阅读全文
posted @ 2022-10-21 11:39 缺个好听的昵称
阅读(58)
评论(0)
推荐(0)
1
2
3
4
5
···
9
下一页
公告