Loading

摘要: #!/usr/bin/env python # coding=utf-8 import os import time from ansible import context from ansible.cli import CLI from ansible.module_utils.common.co 阅读全文
posted @ 2023-11-07 09:26 wsongl 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 背景: aws的ec2机器没有正常启动,检查发现,机器服务不可达(就是启动失败)。实例操作系统日志,我看到下面的日志:[DEPEND] Dependency failed for /data2.[DEPEND] Dependency failed for Local File Systems.... 阅读全文
posted @ 2022-04-14 15:28 wsongl 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 介绍 LVS 由2部分程序组成,包括 ipvs 和 ipvsadm。 1. ipvs(ip virtual server):一段代码工作在内核空间,叫ipvs (linux模块),是真正生效实现调度的代码。2. ipvsadm:另外一段是工作在用户空间,叫ipvsadm,负责为ipvs内核框架编写规 阅读全文
posted @ 2022-03-19 15:48 wsongl 阅读(281) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "net/http" "time" "github.com/gin-gonic/gin" "github.com/golang-jwt/jwt/v4" ) func main() { r := gin.Default() r.GET("/log 阅读全文
posted @ 2022-03-01 19:05 wsongl 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 安装 https://www.cnblogs.com/lxfnote/p/8615697.html pyenv安装python,先把本地升级成3版本的python,否则一堆错误,切记!!! rpm -qa | grep openssl rpm -e --nodeps <包名> virtualenv 阅读全文
posted @ 2022-02-28 10:48 wsongl 阅读(151) 评论(0) 推荐(0) 编辑
摘要: go环境变量设置GOROOT(go的安装目录)GOPATH(go依赖包目录) # Mac: vim ~/.zshrc export GOROOT=/usr/local/go export GOPATH=/Users/wsongl/go export PATH=$PATH:$GOROOT/bin:$G 阅读全文
posted @ 2022-02-28 10:34 wsongl 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 实践,可用 1、确保prometheus采集了alertmanager的metrics - job_name: "alertmanager" static_configs: - targets: ["localhost:9093"] 2、插入dashboard: Grafana Dashboard: 阅读全文
posted @ 2022-01-06 11:21 wsongl 阅读(999) 评论(0) 推荐(0) 编辑
摘要: 参考: https://blog.csdn.net/weixin_38138153/article/details/119254927 https://blog.csdn.net/qihoo_tech/article/details/104707905 一、规则 Golang方法集规则: 类型 方法 阅读全文
posted @ 2021-12-30 15:29 wsongl 阅读(136) 评论(2) 推荐(1) 编辑
摘要: 参考: 1、朱双印博客:https://www.zsythink.net/archives/category/%e8%bf%90%e7%bb%b4%e7%9b%b8%e5%85%b3/iptables 2、https://blog.51cto.com/u_10630401/2089708 本篇文章内 阅读全文
posted @ 2021-12-14 15:17 wsongl 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/double-dong/p/11483670.html 配置系统 systemctl stop firewalld systemctl disable firewalld sed -i 's/^SELINUX=.*/SELINUX=disable 阅读全文
posted @ 2021-08-28 14:20 wsongl 阅读(3721) 评论(0) 推荐(0) 编辑