随笔分类 -  运维

运维相关文章
centos 设置开机自动挂载
摘要:原文链接:https://blog.csdn.net/zhangli_li520/article/details/123275631 Centos7 挂载磁盘并设置开机启动本操作以该场景为例,当服务器挂载了一块新的数据盘时,使用fdisk分区工具将该数据盘设为主分区,分区形式默认设置为MBR,文件系 阅读全文

posted @ 2022-05-28 15:32 正义的伙伴! 阅读(2172) 评论(0) 推荐(0) 编辑

drone 编译问题
摘要:drone-server 编译 编译命令: go install -tags "oss nolimit" github.com/drone/drone/cmd/drone-server 编译命令: go install github.com/drone/drone/cmd/drone-server 阅读全文

posted @ 2022-01-19 09:46 正义的伙伴! 阅读(680) 评论(0) 推荐(0) 编辑

docker 删除无用镜像
摘要:docker rmi ( docker images -f "dangling=true" -q ) 阅读全文

posted @ 2021-08-31 12:25 正义的伙伴! 阅读(101) 评论(0) 推荐(0) 编辑

http 协议添加用户名密码
摘要:如下所示: http://username:password@localhost/loki/api/v1/push 阅读全文

posted @ 2021-08-23 17:59 正义的伙伴! 阅读(1250) 评论(0) 推荐(0) 编辑

shell 需要注意的项
摘要:#!/bin/bash # 这里 grep -vE 必须有, 否则会杀死全部进程.. pids=`ps -ef | grep 'prometheus'| grep -vE '(grep|/bin/bash|bash|sh)' | tr -s ' '| cut -d ' ' -f 2` echo "进 阅读全文

posted @ 2021-08-19 13:51 正义的伙伴! 阅读(36) 评论(0) 推荐(0) 编辑

k8s 使用 persistvolumncllaim
摘要:kind: Pod apiVersion: v1 metadata: name: mypod spec: containers: - name: myfrontend image: dockerfile/nginx volumeMounts: - mountPath: "/var/www/html" 阅读全文

posted @ 2021-08-11 10:26 正义的伙伴! 阅读(47) 评论(0) 推荐(0) 编辑

k8s 安装 rancher
摘要:title: rancher 安装 tag: [kubernate] comments: true 参考 https://docs.rancher.cn/docs/rancher2.5/installation/install-rancher-on-k8s/_index 1. 设置 repo hel 阅读全文

posted @ 2021-08-06 12:25 正义的伙伴! 阅读(1430) 评论(0) 推荐(0) 编辑

linux 创建 service
摘要:#!/bin/bash # 安装 node_exporter 服务 # 在 centos 上测试通过 mkdir -p /usr/local/devops/exporter cd /usr/local/devops/exporter # wget https://netdisk-1253388903 阅读全文

posted @ 2021-08-03 15:46 正义的伙伴! 阅读(356) 评论(0) 推荐(0) 编辑

consul 相关
摘要:https://www.cnblogs.com/java-zhao/p/5387105.html # 启动 consul consul agent -server -bootstrap-expect 1 -data-dir=/data/ -config-dir=config/ -bind=192.1 阅读全文

posted @ 2021-08-03 11:17 正义的伙伴! 阅读(27) 评论(0) 推荐(0) 编辑

fiddler 图片下载
摘要:# 点击这里 # 搜索 static function OnDone 添加代码 static function OnDone(oSession: Session) { //检查Content-Type if (oSession.ResponseHeaders["Content-Type"]!=nul 阅读全文

posted @ 2021-06-29 14:23 正义的伙伴! 阅读(160) 评论(0) 推荐(0) 编辑

linux 查看 memcached 运行状态
摘要:linux下查看Memcached运行状态 查看Memcached运行状态的命令是:echo stats | nc 127.0.0.1 11211 查看memcached状态的基本命令,通过这个命令可以看到如下信息: STAT pid 22459 进程ID STAT uptime 1027046 服 阅读全文

posted @ 2021-06-28 14:11 正义的伙伴! 阅读(422) 评论(0) 推荐(0) 编辑

jmeter 生成报告
摘要:# 生成测试报告 jtl 文件 jmeter -n -t 测试计划.jmx -l test.jtl # 根据 jtl 生成 html 文件 ,path 为 html 的目录 jmeter -g test.jtl -o path 阅读全文

posted @ 2021-06-24 15:24 正义的伙伴! 阅读(23) 评论(0) 推荐(0) 编辑

nginx 直接返回文本或json
摘要:有些时候请求某些接口的时候需要返回指定的文本字符串或者json字符串,如果逻辑非常简单或者干脆是固定的字符串,那么可以使用nginx快速实现,这样就不用编写程序响应请求了,可以减少服务器资源占用并且响应性能非常快 先看返回固定的文本和json,都是在server中配置location拦截即可,配置示 阅读全文

posted @ 2021-06-22 18:11 正义的伙伴! 阅读(1973) 评论(0) 推荐(0) 编辑

cron 表达式
摘要:linux 的 cron 和 java quartz ,spring 中的 cron 是不一样的 详情参考 : crontab执行时间计算 - 在线工具 (tool.lu) 阅读全文

posted @ 2021-06-09 15:03 正义的伙伴! 阅读(53) 评论(0) 推荐(0) 编辑

pinpoint 添加 日志查询功能
摘要:1. 下载 pinpoint 插件 开启日志功能需要自己写一个插件 ,参考 https://pinpoint-apm.github.io/pinpoint/perrequestfeatureguide.html#3-expose-log-in-pinpoint-web ,插件完成后放到 pinpoi 阅读全文

posted @ 2021-06-04 18:49 正义的伙伴! 阅读(1740) 评论(1) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
//增加一段JS脚本,为目录生成使用
点击右上角即可分享
微信分享提示