君相见的博客

  • 博客首页
  • 软件应用
  • 操作系统
  • 经验分享
  • 数据存储
  • 网络相关
  • 虚拟化
  • 在线视频
  • 新闻内容
  1. 首页
  2. 软件应用
  3. 正文

行云管家堡垒机安装Agent

2020年8月10日 1346点热度 1人点赞 0条评论

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)

本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可
标签: 暂无
最后更新:2020年8月10日

君相见

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2023 君相见的博客. ALL RIGHTS RESERVED.

51LA

Theme Kratos Made By Seaton Jiang

京ICP备16003177号-5

京公网安备11010802032358号