会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吃吃吃大王
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
2022年3月1日
orange网关安装
摘要: mysql-db安装步骤见下一篇随笔 #下载地址: https://openresty.org/download/openresty-1.21.4.1.tar.gz https://github.com/sumory/lor https://github.com/sumory/orange.git
阅读全文
posted @ 2022-03-01 16:24 吃吃吃大王
阅读(255)
评论(0)
推荐(0)
2022年2月22日
linux 自带的变量含义
摘要: $# 是传给脚本的参数个数 $0 是脚本本身的文件名 $1 是脚本后接的第一个参数 $2 是脚本后接的第二个参数 $@ 是传给脚本的所有参数列表,"$1" "$2" "$3" … "$n" $* 是以一个单字符串显示传给脚本的所有参数,"$1 $2 $3 … $n" $$ 是脚本运行的当前进程ID号
阅读全文
posted @ 2022-02-22 17:33 吃吃吃大王
阅读(384)
评论(0)
推荐(0)
分支条件匹配
摘要: mode=$1case "$mode" in '01') start-01.sh ;; '02')start-02.sh ;; '03')start-03.sh ;; '04')start-04.sh ;; '05')start-05.sh ;; *) # usage basename=`basen
阅读全文
posted @ 2022-02-22 17:28 吃吃吃大王
阅读(38)
评论(0)
推荐(0)
2022年2月18日
给服务创建Systemctl启动快捷方式
摘要: vi /usr/lib/systemd/system/nginx.service [Unit] Description=nginx After=syslog.target network.target docker.service [Service] #Type=simple User=root G
阅读全文
posted @ 2022-02-18 16:21 吃吃吃大王
阅读(53)
评论(0)
推荐(0)
2022年2月14日
查看某时间段的系统资源使用情况
摘要: 查询CPU可用 sar -u 和 sar -q 等来查看 查询内存可用 sar -B、sar -r 和 sar -W 等来查看 查询io可用 sar -b、sar -u 和 sar -d 等来查看
阅读全文
posted @ 2022-02-14 16:51 吃吃吃大王
阅读(113)
评论(0)
推荐(0)
2022年2月11日
sed命令常用方法
摘要: test文件内容: 1linelion2linedog3linewolf4linetiger5linelion 替换: [root@localhost ruby] # sed -i '1,$s/cat/lion/g' test #在test文件中,从第一行到最后一行,查找cat,替换成lion [r
阅读全文
posted @ 2022-02-11 17:58 吃吃吃大王
阅读(71)
评论(0)
推荐(0)
汇总,大数据开源框架技术扫盲
摘要: 目录 系统平台 (Hadoop、CDH、HDP) 监控管理 (CM、Hue、Ambari、Dr.Elephant、Ganglia、Zabbix、Eagle) 文件系统 (HDFS、GPFS、Ceph、GlusterFS、Swift 、BeeGFS、Alluxio) 资源调度 (YARN、Mesos、
阅读全文
posted @ 2022-02-11 11:43 吃吃吃大王
阅读(690)
评论(0)
推荐(0)
2022年1月28日
通过脚本定期删除log日志文件
摘要: 方法1:find /home/mylog/ -name "2022*.log" -mtime +7 -type f | xargs rm -f 删除7天以上的,以2022开头的,以.log结尾的文件(推荐使用此方法) 方法2:find /home/mylog/ -name \"*.txt\" -mt
阅读全文
posted @ 2022-01-28 16:40 吃吃吃大王
阅读(339)
评论(0)
推荐(0)
2022年1月20日
安装Docker
摘要: ## 停掉防火墙 systemctl stop firewalld systemctl disable firewalld ##移除本身的源 rm -fr /etc/yum.repos.d/* #添加网易镜像站 cd /etc/yum.repos.d/ wget http://mirrors.163
阅读全文
posted @ 2022-01-20 10:33 吃吃吃大王
阅读(163)
评论(0)
推荐(0)
二进制安装1.14.2和1.20.1NGINX
摘要: nginx-1.14.2 yum -y install gcc automake autoconf libtool make pcre pcre-devel zlib zlib-devel openssl openssl-devel wget http://nginx.org/download/ng
阅读全文
posted @ 2022-01-20 10:23 吃吃吃大王
阅读(224)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
公告