09 2018 档案
摘要:#!/usr/bin/env python #参考https://github.com/vmware/pyvmomi/blob/master/sample/poweronvm.py """ Python program for powering on vms on a host on which hostd is running """ from __future__ import prin...
阅读全文
摘要:yum安装软件报错Segmentation fault处理 在使用yum 更新软件时提示:Segmentation fault 中文错误提示: 段错误 [root@CMS-BAK:/usr/local/lib]# yum install -y screenFreeing read locks for
阅读全文
摘要:自动发现配置
阅读全文
摘要:zabbix使用自动发现监控esxi的磁盘存储storage 在任意一台可以访问vcenter的zabbix-agent服务器上添加exsi的磁盘监控模板即可 创建模板过程: custom.esxi.discovery 画图: 注意要选择浮点型,否则可能不支持 添加触发器:当磁盘使用率超过85%时触
阅读全文
摘要:1.安装python3.6.6 # 安装依赖,一定要安装,否则后面可能无法安装一些python插件 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel m...
阅读全文
摘要:安装php7的memcached扩展 1.编译安装libmemcached-1.0.18 wget https://launchpadlibrarian.net/165454254/libmemcached-1.0.18.tar.gz tar -zxvf libmemcached-1.0.18.tar.gz cd libmemcached-1.0.18 ./configure --prefix...
阅读全文
摘要:#!/usr/bin/python3 #coding:utf-8 #Author: ziming """ 只用于模拟开发功能测试 """ from pyVmomi import vim from pyVim.connect import SmartConnect, Disconnect, SmartConnectNoSSL import sys import atexit import arg...
阅读全文