在CentOS上安装vSphere CLI 5.1


1.下载

在vmware官网上搜索下载 VMware-vSphere-CLI-5.1.0-780721.x86_64.gz

2.解压缩

tar xzvf VMware-vSphere-CLI-5.1.0-780721.x86_64.gz

3.安装

在解压缩的文件中找到文件vmware-install.pl

sudo ./vmware-install.pl

在安装的过程中,会提示我们设置httpproxy和ftpproxy

如果不想设置这两个变量的话,可以在vmware-install.pl文件中作一下修改,然后在安装就ok了:

if ( !( $ftpproxy && $httpproxy)) {
          uninstall_file($gInstallerMainDB);
        exit 1;
        }
        require CPAN;

        if ( !( $ftpproxy && $httpproxy)) {
#          uninstall_file($gInstallerMainDB);
#        exit 1;
        }
        require CPAN;

相关内容