现象VIP不漂移 排查方法:日志+google grepKeepalived/var/log/syslog|tail-n12 发现问题: 脚本执行权限(与centos系列有差别,这里需要指定用户) 严格设置故障优先级,否者keepalived比较优先级可能导致vip漂移失败 max_auto_priority 配置选项可以提高Keepalived的性能。max_auto_priority 选项可以设置VRRP实例的最大自动优先级。测试了没啥改变,,资料较少,配置上减少告警 优先级的改变:master的priority+ weight的值,backup不变...

  mPcyh9OXzYGu   2023年11月02日   55   0   0 haproxykeepaliveAnsible

容器运行时是一个负责运行和管理容器的软件。它负责创建、启动、停止和监控容器。它也负责为容器提供和宿主机器隔离的运行环境,包括文件系统、网络堆栈、进程空间等。 有多种类型的容器运行时,包括: Docker:这可能是最为人所知的容器运行时。Docker通过简化容器的创建和管理,使得容器技术变得更加易用。 containerd:这是一个开源的容器运行时,是Docker的一个组件,但也可以独立于Docker运行。containerd用于管理容器的完整生命周期,包括镜像传输和存储、容器执行和监控、低级存储和网络接口。 runc:这是一个符合OpenContainerInitiative(OCI)规范的...

  mPcyh9OXzYGu   2023年11月02日   71   0   0 Docker

BGP(BorderGatewayProtocol)是一种用于互联网路由系统的自治系统(AS)间进行路由信息交换的协议。它是目前互联网上最广泛使用的路由协议。 BGP的工作原理 BGP使用TCP作为其传输协议(默认端口号为179),确保路由表的可靠传输。BGP通过交换网络可达性信息来构建一个一致性的路由表。这个信息包括了AS路径信息,这样BGP就可以做出决策并避免路由循环。 BGP有两种主要类型:InternalBGP(iBGP)和ExternalBGP(eBGP)。 iBGP:在同一个自治系统内部的路由器之间使用iBGP,主要:RIP1/RIP2、OSPF、ISIS、EIGRP(思科私有协...

  mPcyh9OXzYGu   2023年11月02日   36   0   0 数据中心自治系统使用场景

获取当前登录的域用户 $user=[System.Security.Principal.WindowsIdentity]::GetCurrent().Name 根据用户获取其所属的AD组 $adGroups=(Get-AdPrincipalGroupMembership-Identity$user).Name 为不同部门的打印机设置共享路径 $departmentAPrinter="\\PrintServer\DepartmentAPrinter" $departmentBPrinter="\\PrintServer\DepartmentBPrinter" 检查用户所属的AD组,并为其...

  mPcyh9OXzYGu   2023年11月02日   36   0   0 ADPowershellci用户登录

$folderPath="C:\path\to\folder" $printCopies=3 Get-ChildItem-Path$folderPath-Filter.doc|ForEach-Object{ for($i=0;$i-lt$printCopies;$i){ Start-Process-FilePath$_.FullName-VerbPrint } } 一定要指定默认打印机

  mPcyh9OXzYGu   2023年11月02日   73   0   0 Windows批量Powershell

习惯了Linux,用不惯Windows sudoaptupdate sudoaptinstall-ycurlgnupgapt-transport-https curlhttps://packages.microsoft.com/keys/microsoft.asc|sudogpg--dearmor-o/etc/apt/trusted.gpg.d/microsoft.gpg sudoecho"deb[arch=amd64]https://packages.microsoft.com/repos/microsoft-debian-buster-prodbustermain">/etc/ap...

  mPcyh9OXzYGu   2023年11月02日   78   0   0 microsoftlinuxVMwarePowerCLIdebian11

spice连接工具 https://virt-manager.org/download/ vmwindow10及其他windows系统要安装spice驱动 https://www.spice-space.org/download/windows/spice-guest-tools/spice-guest-tools-latest.exe 选择spice内存默认16M,无需更改 配置文件修改,追加加 echo"args:-spice'port=61101,addr=0.0.0.0,seamless-migratinotallow=on,disable-ticketing'">&gt...

  mPcyh9OXzYGu   2023年11月02日   36   0   0 spice配置文件

配置双IP root@pve:/opt/shell-scriptcat/etc/network/interfaces autolo ifaceloinetloopback source/etc/network/interfaces.d/.cfg ifaceenp0s31f6inetmanual autovmbr0 ifacevmbr0inetstatic address192.168.9.231/24 upipaddradd192.168.157.231/24devvmbr0 gateway192.168.9.1 bridge-portsenp0s31f6 bridge-stpoff b...

  mPcyh9OXzYGu   2023年11月02日   61   0   0 网络接口网络配置debianip切换

安装kvm镜像工具套装  CentOS-7-x86_64-GenericCloud-2111.qcow2 aptinstall-ylibguestfs-tools yuminstall-ylibguestfs-toolslibguestfs-winsupportguestfish debian11 !/bin/bash exportIMAGE_NAME=debian-11-nocloud-amd64.qcow2 cat>sources.list<<EOF debhttp://mirrors.aliyun.com/debian/bullsey...

  mPcyh9OXzYGu   2023年11月02日   73   0   0 DockerWindowshive

故障现象1:  sudo:/usr/bin/sudo必须属于用户ID0(的用户)并且设置setuid位 解决方法: chmod4755/usr/bin/sudo chmod4755/usr/libexec/sudo/sudoers.so chownroot:root/usr/libexec/sudo/sudoers.so 故障现象2: 系统重启后,输入用户名登录,提示超时,没有登陆密码提示 查询/var/log/message如下 是selinux导致的权限故障 setenforce0 sed-is'SELINUX.=.enforcing/SELINUX=disabl...

  mPcyh9OXzYGu   2023年11月02日   60   0   0 重启linuxcentos

自定义frpc开机启动,结果开机启动失败,手动启动正常,原因,启动的时候网络配置未完成 修改前的配置 root@pve:cat/etc/systemd/system/frpc.service [Unit] Description=FrpServer After=network.target [Service] Type=simple ExecStart=/usr/bin/frpc-c/etc/frp/frpc.ini Restart=on-failure [Install] WantedBy=multi-user.target 修改后的配置 root@pve:cat/etc/sy...

  mPcyh9OXzYGu   2023年11月02日   41   0   0 重启Serversystemd服务进程

因为懒,想更省事 域设置用户名密码和key,只要有镜像,其他Linux的cloud-image也是通用的 下载img axel-n20https://download.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-GenericCloud-Base.latest.x86_64.qcow2 设置网络为dhcp模式 cat>user-data.yaml<<-EOF cloud-config network: version:2 ethernets: eth0: dhcp4:true EOF 用qm命令创建一个新的虚拟机,...

  mPcyh9OXzYGu   2023年11月02日   31   0   0 用户名ciCloud

云镜像,内置启动初始化配置文件及说明 cat/etc/cloud/cloud.cfg|egrep-v"^$|^" users: default disable_root:true preserve_hostname:false cloud_init_modules: migrator seed_random bootcmd write-files growpart resizefs disk_setup mounts set_hostname update_hostname update_etc_hosts,会修改/etc/hosts自定义,重启后还原 ca-certs rsyslog us...

  mPcyh9OXzYGu   2023年11月02日   74   0   0 ubuntuqcow2init-cloudpve

替换一下hosts:对应内容,搞了半天,记录下 用apt_key添加key是有问题的 gpg--dearmor命令用于将ASCII码格式的gpg数据转换回二进制格式。 GPG加密或签名的数据默认是二进制格式,不方便人们阅读和分发。所以GPG允许将数据转换为ASCII码格式,这就是所谓的ASCIIarmor(护甲)格式。这种格式使用ASCIIprintable字符,可以方便地在邮件、新闻组和论坛上分发。 使用--armor选项可以将数据转换为ASCIIarmor格式。例如: gpg--armor--outputfile.asc--encryptfile gpg--armor--outputf...

  mPcyh9OXzYGu   2023年11月02日   40   0   0 Docker数据转换

蓝绿部署,2个版本同事存在,新版本接替旧版本, 借助istio实现 kubectl-ndemo-projectgetvirtualservice-oyaml 这是一个Istio虚拟服务列表,包含4个服务:details、productpage、ratings和reviews apiVersion:v1 items: 这个虚拟服务配置了details服务的路由规则 apiVersion:networking.istio.io/v1beta1 kind:VirtualService metadata: name:details namespace:demo-project s...

  mPcyh9OXzYGu   2023年11月02日   55   0   0 新版本重定向旧版

资源请求,requests CPU预留显示在清单文件中的.spec.containers[].resources.requests.cpu,实际用量可以超过CPU预留。 内存预留显示在清单文件中的.spec.containers[].resources.requests.memory。实际用量可以超过内存预留,但节点内存不足时可能会清理容器 资源限制,limits CPU限制显示在清单文件中的.spec.containers[].resources.limits.cpu。实际用量可以短时间超过CPU限制,容器不会被停止。 内存限制显示在清单文件中的.spec.containers[].res...

  mPcyh9OXzYGu   2023年11月02日   39   0   0 守护进程最小值Pod

某内部,方便局域网文件查找和分享,全文检索需要付费,每个人都劳动都值得尊重,该付费就付费 Dockerfile FROMphp:7.4.32-apache-buster ENVVERSION2.02 RUNapt-getupdate&&apt-getinstall-y--no-install-recommendslibcurl3-devlibcurl4curllibzip-devlibfreetype6-devlibxml2-devlibtidy-devlibxslt1-dev\ &&rm-r/var/lib/apt/lists/\ &&...

  mPcyh9OXzYGu   2023年11月02日   35   0   0 Dockerdzzofficemysqlphp文档共享

查找磁盘信息 qmconfig115 agent:enabled=1 boot:c bootdisk:scsi0 cores:2 ide2:local-lvm:vm-115-cloudinit,media=cdrom,size=4M ipconfig0:ip=dhcp memory:4096 meta:creation-qemu=6.2.0,ctime=1663922618 name:dzzoffice net0:virtio=7E:AA:58:66:6B:B1,bridge=vmbr0 scsi0:local-lvm:vm-115-disk-0,size=50G scsihw:virti...

  mPcyh9OXzYGu   2023年11月02日   46   0   0 VMwareide右键

ERROR:Commanderroredoutwithexitstatus1: command:/usr/bin/python3/tmp/tmpddkfb8u5_in_process.pyget_requires_for_build_wheel/tmp/tmpu1r8grox cwd:/tmp/pip-install-tum9nqc8/mysqlclient_b0744843797d48b5842e6b1fca1f8603 Completeoutput(24lines): /bin/sh:1:pkg-config:notfound /bin/sh:1:pkg-config:notfound ...

  mPcyh9OXzYGu   2023年11月02日   42   0   0 yum安装mysqlpython

VMwarevCenter低版本与高版本有一定的差异性,7版本的脚本在6.0上问题超多,很容易踩坑,记录下 连接vCenterServer Connect-VIServer-Server<vCenter_Server_Name_or_IP>-User<UserName>-Password<Password> Connect-VIServer-Protocolhttps-User'administrator@vsphere.local'-Password'2wNKEDser21NK'-Server192.168.122.222 获取vCenterSe...

  mPcyh9OXzYGu   2023年11月02日   37   0   0 VMwarevCentervshpere
关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~