Linux主机请在您的主机中以root身份执行以下脚本:
export import_key=70Lvz7LhzVss;export repo=http://192.168.8.60;export download_prefix=http://192.168.8.60;(curl -L -o /tmp/installAgent.sh --retry 2 --retry-delay 3 -k --connect-timeout 60 http://192.168.8.60/downloads/cloudGateway/installAgent.sh)&&((sudo -E bash /tmp/installAgent.sh)||(echo Install fail with exit $?))||(echo Download error with exit $?)
windows主机请在您的主机以“管理员身份运行CMD”并执行以下脚本:
(fltmc>nul&&((ping 192.168.8.60 -w 2000 -n 2 >nul)&&((echo Check network success!) && (powershell -command "[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true};(new-object System.Net.WebClient).DownloadFile('http://192.168.8.60/downloads/cloudGateway/installAgent.ps1',\"$env:temp\installAgent.ps1\")")&&cd %temp% && (powershell -ExecutionPolicy Unrestricted -file ".\installAgent.ps1" 70Lvz7LhzVss http://192.168.8.60 http://192.168.8.60)||(echo on))||(echo Check network fail!)))||(echo. && echo Please run this script as Administrator)
文章评论