Unlock the Power of AI

1 million free tokens

88% Price Reduction

NaNDayNaN:NaN:NaN
Activate Now

Start, stop, or uninstall Cloud Assistant Agent

Updated at: 2025-03-28 06:28
important

This topic contains important information on necessary precautions. We recommend that you read this topic carefully before proceeding.

Cloud Assistant Agent runs Cloud Assistant commands on Elastic Compute Service (ECS) instances. This topic describes how to start, stop, or uninstall Cloud Assistant Agent.

Start or stop Cloud Assistant Agent

Windows ECS instance
Linux ECS instance

To start or stop Cloud Assistant Agent on a Windows instance, perform the following steps.

Warning

Stopping Aliyun Assist Service (Cloud Assistant Agent) may cause issues on the ECS instance. As a result, you are unable to stop the running instances in the ECS console. Proceed with caution.

  1. Connect to the Windows instance.

  2. Click the Start icon and choose Windows Administrative Tools > Computer Management.

  3. Choose Computer Management (Local) > Services and Applications > Services.

  4. Find Aliyun Assist Service and click Stop the service or Restart the service.

    重启动此服务

Note

Before you stop Cloud Assistant Agent, you must uninstall the Cloud Assistant daemon process. For more information, see the Uninstall the Cloud Assistant daemon process from a Linux instance section of this topic.

To start or stop Cloud Assistant Agent on a Linux instance, perform the following steps:

  1. Connect to the Linux instance.

  2. Run the following commands to start or stop Cloud Assistant Agent based on the initialization process of the Linux instance.

    • In most cases, Linux operating systems that are based on new Linux kernel versions use the systemd initialization process. Perform the following steps:

      • Check whether the instance uses the systemd initialization process. If a command output is displayed, the instance uses systemd.

        strings /sbin/init | grep "/lib/system"
      • Stop Cloud Assistant Agent.

        systemctl stop aliyun.service
      • Start Cloud Assistant Agent.

        systemctl start aliyun.service
      • Restart Cloud Assistant Agent.

        systemctl restart aliyun.service
    • In most cases, Ubuntu 14 and earlier operating systems use the UpStart initialization process. Perform the following steps:

      • Check whether the instance uses the UpStart initialization process. If a command output is displayed, the instance uses UpStart.

        strings /sbin/init | grep "upstart"
      • Stop Cloud Assistant Agent.

        /sbin/initctl stop aliyun-service
      • Start Cloud Assistant Agent.

        /sbin/initctl start aliyun-service
      • Restart Cloud Assistant Agent.

        /sbin/initctl restart aliyun-service
    • In most cases, Linux operating systems that are based on early Linux kernel versions use the sysvinit initialization process. Perform the following steps:

      • Check whether the instance uses the sysvinit initialization process. If a command output is displayed, the instance uses sysvinit.

        strings /sbin/init | grep "sysvinit"
      • Stop Cloud Assistant Agent.

        /etc/init.d/aliyun-service stop
      • Start Cloud Assistant Agent.

        /etc/init.d/aliyun-service start
      • Restart Cloud Assistant Agent.

        /etc/init.d/aliyun-service restart

Uninstall Cloud Assistant Agent

Uninstall Cloud Assistant Agent from a Windows instance
Uninstall the Cloud Assistant daemon process from a Linux instance
Uninstall Cloud Assistant Agent from a Linux instance

Uninstall Cloud Assistant Agent

If you no longer need Cloud Assistant Agent, perform the following steps to uninstall Cloud Assistant Agent:

  1. Stop Cloud Assistant Agent. For more information, see the Start or stop Cloud Assistant Agent section of this topic.

  2. Select Hidden items on the View tab. Then, find and delete the C:\ProgramData\aliyun\assist directory.

d5c8f2f19778bba6247adb09143d4d1a

The Cloud Assistant daemon process monitors resource consumption, reports the status of Cloud Assistant Agent, and restarts Cloud Assistant Agent when Cloud Assistant Agent fails. Before you uninstall Cloud Assistant Agent, you must uninstall the Cloud Assistant daemon process.

Note

The Cloud Assistant daemon process is available only for Linux instances.

  1. Connect to the Linux instance.

  2. Stop the Cloud Assistant daemon process.

    Note

    In the following command, /usr/local/share/assist-daemon/assist_daemon is the default path of the Cloud Assistant daemon process.

    /usr/local/share/assist-daemon/assist_daemon --stop
  3. Uninstall the Cloud Assistant daemon process.

    /usr/local/share/assist-daemon/assist_daemon --delete
  4. Delete the directory of the Cloud Assistant daemon process.

    rm -rf /usr/local/share/assist-daemon

If you no longer require Cloud Assistant Agent, perform the following steps to uninstall Cloud Assistant Agent:

  1. Connect to the Linux instance.

  2. Uninstall the Cloud Assistant daemon process.

    For more information, see the Uninstall the Cloud Assistant daemon process from a Linux instance section of this topic.

  3. Stop Cloud Assistant Agent.

    For more information, see the Start or stop Cloud Assistant Agent on a Linux instance section of this topic.

  4. Use one of the following methods to uninstall Cloud Assistant Agent:

    • To uninstall the Cloud Assistant RPM Package Manager (RPM) package, run the following command:

      sudo rpm -qa | grep aliyun_assist | xargs sudo rpm -e
    • To uninstall the Cloud Assistant Debian Binary (‌DEB) package, run the following command:

      sudo dpkg -r aliyun-assist
  5. Run the following command to delete the directory in which Cloud Assistant Agent is installed:

    rm -rf /usr/local/share/aliyun-assist
  • On this page (1, M)
  • Start or stop Cloud Assistant Agent
  • Uninstall Cloud Assistant Agent
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare