一、異常信息
[INFO] Deployment File is Uploading... [INFO] IDE Version:IntelliJ IDEA 2019.1.1 [INFO] Alibaba Cloud Toolkit Version:2019.7.2 [INFO] Start upload base-eureka.jar [INFO][##################################################] 100% (44715050/44715050) [INFO] Succeed to upload, 44715050 bytes have been uploaded. [INFO] Upload Deployment File to OSS Success [INFO] Target Deploy ECS: { 172.17.84.62 / 101.201.236.143 } [INFO] Command: { source /etc/profile; cd /mnt/software; sh /mnt/software/base-eureka/restart-one.sh } Tip: The deployment package will be temporarily stored in Alibaba Cloud Security OSS and will be deleted after the deployment is complete. Please be assured that no one can access it except you. [ERROR] The cloud assistant is not installed on the ECS, or the cloud assistant is unavailable. Please check and try again, reference https://help.aliyun.com/knowledge_detail/120568.html. [ERROR] cloudassistant is uninstall at com.alibabacloud.commons.ecs.service.CommandService.installCloudAssistant(CommandService.java:399) at com.alibabacloud.commons.ecs.service.CommandService.runAndDeleteCommand(CommandService.java:78) at com.alibabacloud.intellij.task.EcsDeployTask.runCreateUploadDirCmd(EcsDeployTask.java:239) at com.alibabacloud.intellij.task.EcsDeployTask.run(EcsDeployTask.java:160) at com.alibabacloud.intellij.runner.ecs.EcsRunProfileState$1.run(EcsRunProfileState.java:88) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:731) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151) at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) open terminal
二、解決辦法
1)RPM包安裝,適合CentOS、RHEL和SUSE Linux等操作系統:
1.遠程連接Linux實例。
2.運行wget https://repo-aliyun-assist.oss-cn-beijing.aliyuncs.com/download/aliyun_assist.rpm下載雲助手客戶端rpm包
3.運行rpm -ivh aliyun_assist.rpm安裝雲助手客戶端。
(僅經典網絡類型實例)在雲助手的安裝目錄下創建名為region-id的文件,在文件中填入ECS實例所屬地域的ID,例如cn-hangzhou。更多取值請參見地域和可用區。
4.驗證是否安裝成功
aliyun-service -v
注意:
第3步,對於經典網絡類型實例,需要在安裝目錄下創建名為region-id的文件
1.默認安裝路徑:
如果您選擇默認安裝路徑,則客戶端在Linux實例中的安裝目錄為:
- CoreOS操作系統:/opt/local/share/aliyun-assist/
- 其他操作系統(Ubuntu、Debian、Red Hat、SUSE Linux Enterprise Server、OpenSUSE和Aliyun Linux等):/usr/local/share/aliyun-assist/
2.查找ECS實例所屬地域的ID
2)其他系統安裝文檔見:
https://help.aliyun.com/document_detail/64921.html?spm=a2c4g.11186623.2.11.50292ad8K65TED
