检测vmware硬件状况:python check_esx_wbem.py https://$HOSTADDRESS$:5989 user password 检测vmware服务器SN号:python check_esx_serial.py https://$HOSTADDRESS$:5989 us Read More
posted @ 2016-03-09 11:28 又是十年 Views(186) Comments(0) Diggs(0) Edit
/usr/bin/python^M: bad interpreter: No such file or directory python文件编码格式问题,需要将dos文件格式修改为unix文件格式,修改方法如下: 用如下命令查看文件格式 :set ff 或 :set fileformat 可以看到如 Read More
posted @ 2016-03-09 11:24 又是十年 Views(1198) Comments(0) Diggs(0) Edit
python --version 查询当前python版本 ls /usr/bin/python* -l 查询所有python版本 alias python='/usr/bin/python2.6' 修改python别名 #!/usr/bin/python2.6 修改yum默认python版本(yu Read More
posted @ 2016-03-09 11:19 又是十年 Views(1986) Comments(0) Diggs(0) Edit