不死孤狼
IT 从来都是一个有新技术驱动的行业
摘要: 在shell中使用vi或vim编辑器进行文本替换可以通过以下步骤完成: 打开终端。 使用vi或vim命令打开目标文件,例如:vi filename.txt。 进入替换模式,可以通过按:%s/old_string/new_string/g进行全局替换。 : 进入命令模式。 % 表示文件中的所有行。 s 阅读全文
posted @ 2024-04-17 14:35 不死孤狼 阅读(5) 评论(0) 推荐(0) 编辑
摘要: wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - apt-get install apt-transport-https echo "deb https://mirrors.bfsu.edu.c 阅读全文
posted @ 2020-06-22 16:26 不死孤狼 阅读(268) 评论(0) 推荐(0) 编辑
摘要: linux 磁盘划分 fdsik 能划分磁盘成为若干个区,同时也能为每个分区指定分区的文件系统,比如linux 、fat32、 linux 、linux swap 、fat16 以及其实类Unix类操作系统的文件系统等;当然我们用fdisk 对磁盘操作分区时,并不是一个终点,我们还要对分区进行格式化 阅读全文
posted @ 2020-06-11 10:33 不死孤狼 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 安装:apt-get install bash-completion source <(kubectl completion bash) echo "source <(kubectl completion bash)" >> ~/.bashrc source ~/.bashrc 阅读全文
posted @ 2019-04-19 15:06 不死孤狼 阅读(2003) 评论(0) 推荐(0) 编辑
摘要: 集群安装 (一) 安装etcd集群 阅读全文
posted @ 2019-03-06 15:58 不死孤狼 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash yesterday=`date -d last-day +%Y-%m-%d` dayago=`date -d '2 days ago' +%Y-%m-%d` #echo $yesterday yester=`grep 'createOrderPayByQrcode.in' /opt/nginx/logs/all_access.$yesterday |wc -l` ol... 阅读全文
posted @ 2018-06-16 14:13 不死孤狼 阅读(236) 评论(0) 推荐(0) 编辑