Todos os produtos
Search
Central de documentação

Elastic Compute Service:Parar e desinstalar o Cloud Assistant Agent

Última atualização: Sep 02, 2026

Parar ou desinstalar o Cloud Assistant Agent desativa o logon remoto, a execução de comandos do OOS e os Diagnostics.

Parar o Cloud Assistant Agent

Importante

Se você estiver conectado via Session Manager ou Workbench, parar o agente encerrará sua sessão. Conecte-se primeiro por outro método, como Workbench terminal connection, third-party client tool (SSH) ou VNC.

Linux

  1. Connect to a Linux instance by using a username and password.

  2. Pare o processo daemon.

    O processo daemon monitora o Cloud Assistant Agent e o reinicia automaticamente. Pare o daemon primeiro. Versões mais recentes do Cloud Assistant não instalam o componente daemon. Se o caminho abaixo não existir na instância, pule esta etapa.
    if [ -e /usr/local/share/assist-daemon/assist_daemon ]; then
        sudo /usr/local/share/assist-daemon/assist_daemon --stop
    fi
  3. Identifique o sistema init.

    O comando para parar varia conforme o sistema init. Identifique qual deles sua instância utiliza.
    • systemd: Alibaba Cloud Linux, CentOS 7+, Red Hat Enterprise Linux (RHEL) 7+, Fedora 15+, Ubuntu 15.04+, Debian 8+, entre outros.

    • Upstart: Ubuntu 6.10-14.10, RHEL 6, CentOS 6, entre outros.

    • SysVinit: RHEL 5, CentOS 5, Debian 6, entre outros.

  4. Pare o Cloud Assistant Agent.

    systemd

    sudo systemctl stop aliyun.service
    
    # Verify that the service has stopped. The service is stopped if the output contains "inactive (dead)".
    sudo systemctl status aliyun.service

    Upstart

    sudo /sbin/initctl stop aliyun-service
    
    # Verify that the service has stopped. The service is stopped if the output is empty.
    ps aux | grep -v grep | grep "aliyun-service"

    SysVinit

    sudo /etc/init.d/aliyun-service stop
    
    # Verify that the service has stopped. The service is stopped if the output is empty.
    ps aux | grep -v grep | grep "aliyun-service"

Windows

Método 1: Usar o console de Serviços do Windows

  1. Use RDP client or Windows App.

  2. Clique no ícone Iniciar e selecione Windows Administrative Tools > Computer Management.

  3. No painel à esquerda, acesse Computer Management (Local) > Services and Applications > Services.

  4. Localize Aliyun Assist Service e clique em Stop the service.

    Stop the service

Método 2: Usar o Windows PowerShell

  1. Use RDP client or Windows App.

  2. Clique no ícone Iniciar, localize Windows PowerShell, clique com o botão direito nele e selecione Run as administrator.

  3. Pare o Cloud Assistant Agent.

    Stop-Service -Name "AliyunService"
  4. Verifique se o agente foi parado.

    O agente estará parado se Status for Stopped.

    Get-Service -Name "AliyunService"

Desinstalar o Cloud Assistant Agent

Importante

Se você estiver conectado via Session Manager ou Workbench, parar o agente encerrará sua sessão. Conecte-se primeiro por outro método, como Workbench terminal connection, SSH ou VNC.

Linux

  1. Stop Cloud Assistant Agent.

  2. Exclua o processo daemon.

    Versões mais recentes do Cloud Assistant não instalam o componente daemon. Se o caminho /usr/local/share/assist-daemon não existir na instância, pule esta etapa. O arquivo assist_daemon, incluído em pacotes de instalação mais antigos, reside no diretório de versão dentro de /usr/local/share/aliyun-assist e é removido na etapa "Limpar arquivos residuais e configurações de serviço".
    if [ -e /usr/local/share/assist-daemon/assist_daemon ]; then
        sudo /usr/local/share/assist-daemon/assist_daemon --delete
    fi
  3. Desinstale o pacote.

    • RPM: Para Alibaba Cloud Linux, CentOS, RHEL, Fedora, Rocky Linux, openSUSE, entre outros.

    • DEB: Para Debian, Ubuntu, entre outros.

      RPM

      sudo rpm -qa | grep aliyun_assist | xargs sudo rpm -e

      DEB

      sudo apt-get purge -y aliyun-assist
  4. Limpe arquivos residuais e configurações de serviço.

    sudo rm -rf /usr/local/share/aliyun-assist
    sudo rm -rf /usr/local/share/assist-daemon
    sudo rm -f /etc/systemd/system/aliyun.service
    sudo rm -f /etc/init.d/aliyun-service
  5. Verifique se o agente foi desinstalado.

    A desinstalação será confirmada se a saída estiver vazia.

    ps aux | grep -v grep | grep "aliyun-service"

Windows

Método 1: Usar a interface da área de trabalho do Windows

  1. Stop the Cloud Assistant Agent.

  2. No File Explorer, acesse a aba View, selecione Hidden items e exclua o diretório C:\ProgramData\aliyun\assist.

    d5c8f2f19778bba6247adb09143d4d1a

Método 2: Usar o Windows PowerShell

  1. Use RDP client or Windows App.

  2. Clique no ícone Iniciar, localize Windows PowerShell, clique com o botão direito nele e selecione Run as administrator.

  3. Pare o Cloud Assistant Agent.

    Stop-Service -Name "AliyunService" -Force
  4. Exclua o diretório de instalação e o registro.

    # Delete the installation directory
    Remove-Item -Path "C:\ProgramData\aliyun\assist" -Recurse -Force
    
    # Delete the registry entry
    Remove-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\AliyunService" -Recurse -Force
  5. Verifique se o agente foi desinstalado.

    A desinstalação será confirmada se a saída estiver vazia ou exibir Cannot find any service with service name 'AliyunService'.

    Get-Service -Name "AliyunService"

FAQ

Como reiniciar o Cloud Assistant Agent após pará-lo?

Linux

  1. Connect to a Linux instance by using a username and password.

  2. Inicie o processo daemon.

    Versões mais recentes do Cloud Assistant não instalam o componente daemon. Se o caminho abaixo não existir na instância, pule esta etapa.
    if [ -e /usr/local/share/assist-daemon/assist_daemon ]; then
        sudo /usr/local/share/assist-daemon/assist_daemon --start
    fi
  3. Identify the init system type.

  4. Inicie o Cloud Assistant Agent.

    systemd

    sudo systemctl start aliyun.service
    
    # Verify that the service has started. The service is running if the output contains "active (running)".
    sudo systemctl status aliyun.service

    Upstart

    sudo /sbin/initctl start aliyun-service
    
    # Verify that the service has started. The service is running if the output is not empty.
    ps aux | grep -v grep | grep "aliyun-service"

    SysVinit

    sudo /etc/init.d/aliyun-service start
    
    # Verify that the service has started. The service is running if the output is not empty.
    ps aux | grep -v grep | grep "aliyun-service"

Windows

Método 1: Usar a interface de Serviços do Windows

  1. Use RDP client or Windows App.

  2. Clique no Start icon e selecione Windows Administrative Tools > Computer Management.

  3. No painel à esquerda, acesse Computer Management (Local) > Services and Applications > Services.

  4. Localize Aliyun Assist Service e clique em Start the service.

Método 2: Usar o Windows PowerShell

  1. Use RDP client or Windows App.

  2. Clique no Start icon, localize Windows PowerShell, clique com o botão direito nele e selecione Run as administrator.

  3. Inicie o Cloud Assistant Agent.

    Start-Service -Name "AliyunService"
  4. Verifique se o agente foi iniciado.

    O agente estará em execução se Status for Running.

    Get-Service -Name "AliyunService"

Referências