会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
苍茫宇宙
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
31
下一页
2021年4月8日
sed命令使用详解
摘要: 环境:centos7 使用sed-格式 命令行格式 sed [options] 'command' file(s) option: -e;-n command: 行定位 (正则)+sed命令(操作) 格式行格式举例 sed -n '/root/p' sed -e '10,20p' -e 's/fal
阅读全文
posted @ 2021-04-08 17:31 苍茫宇宙
阅读(448)
评论(0)
推荐(0)
2021年4月5日
shell的正则表达式-grep
摘要: 环境:centos7、grep 总览 1、范围内字符:单个字符 [ ] 特定字符 ‘X’ 范围字符 [ ] [^] 任意字符 . 数字字符:[0-9],[259] [root@SmartCommunity-Node01 tmp]# more d.txt 1 2 3 4 5 6 7 8 [root@S
阅读全文
posted @ 2021-04-05 19:07 苍茫宇宙
阅读(538)
评论(0)
推荐(0)
2021年4月4日
awk命令使用
摘要: 环境:centos7 1、awk直接筛选列 [sanhlt@k8s-master ~]$ free -g total used free shared buff/cache available Mem: 3 1 1 0 0 1 Swap: 0 0 0 [sanhlt@k8s-master ~]$ f
阅读全文
posted @ 2021-04-04 12:04 苍茫宇宙
阅读(297)
评论(0)
推荐(0)
2021年4月3日
k8s快速删除所有退出的pod
摘要: 环境centos7、shell脚本 1、k8s删除退出的pod脚本 执行 ./a.sh Exited cat a.sh #!/bin/bash #输入退出类型,不输入默认删除ImagePullBackOff i=${1-ImagePullBackOff} kubectl get pods --all
阅读全文
posted @ 2021-04-03 17:18 苍茫宇宙
阅读(1691)
评论(0)
推荐(0)
2021年3月17日
ratticdb密码管理工具安装使用
摘要: 环境:centos7 1、安装,直接使用docker安装使用 docker run --restart always --name ratticdb -d -p 8003:80 wukc/ratticdb:latest 2、访问:http:ip:8003 Username: admin Passwo
阅读全文
posted @ 2021-03-17 11:03 苍茫宇宙
阅读(453)
评论(0)
推荐(0)
2021年3月11日
redis-cluster集群6.2.0安装
摘要: 规划 名称 ip 端口 redis集群6.2.0 172.21.210.49 7001、7002 redis集群6.2.0 172.21.210.50 7001、7002 redis集群6.2.0 172.21.210.51 7001、7002 环境:centos7 软件下载: https://do
阅读全文
posted @ 2021-03-11 11:23 苍茫宇宙
阅读(560)
评论(0)
推荐(0)
mysql日常备份策略及脚本
摘要: 环境:centos7、mysql 1、建目录 mkdir /mysqlbak 2、建脚本 [root@mysql-61 ~]# cat /mysqlbak/mysqlback.sh #!/bin/bash source /etc/profile ip='192.168.10.1' pws='pass
阅读全文
posted @ 2021-03-11 11:09 苍茫宇宙
阅读(112)
评论(0)
推荐(0)
2021年3月9日
redis集群安装
摘要: 环境:centos7 单节点安装下载软件wget http://download.redis.io/releases/redis-3.2.6.tar.gz编译安装tar zxvf redis-3.2.6.tar.gz -C /usr/local/soft/cd /usr/local/soft/cd
阅读全文
posted @ 2021-03-09 14:30 苍茫宇宙
阅读(56)
评论(0)
推荐(0)
2021年3月5日
redis集群设置密码认证
摘要: 环境:linux、redis集群3主3从 方法一、修改配置文件 1、停止所有redis服务 ps -ef|grep reids|awk '{print $2}'|xargs kill -9 2、在配置文件添加密码认证(所有节点配置文件都要修改) cat <<EOF >> /你的配置文件路径/redi
阅读全文
posted @ 2021-03-05 11:44 苍茫宇宙
阅读(1070)
评论(0)
推荐(1)
2021年2月24日
使用Dockerfile打包tomcat镜像images
摘要: 环境:centos7 、apache-tomcat-8.0.36、 jdk1.8.0_11 直接下载images:docker pull wukc/tomcat:8.0.36 下面打包方法: 1、官网下载tomcat https://archive.apache.org/dist/tomcat/to
阅读全文
posted @ 2021-02-24 11:29 苍茫宇宙
阅读(682)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
31
下一页
公告