Updated on 2024-04-17 GMT+08:00

Installing the Agent on a Linux Server

Scenarios

This topic describes how to manually install the Agent on a Linux server.

Constraints

Only Windows and Linux are supported. For details, see What OSs Does the Agent Support?

Prerequisites

Procedure

  1. Log in to an ECS as user root.
  2. Run either of the commands below to install the Agent. agent_install.sh and agentInstall.sh are the installation scripts.
    Agent of the new architecture: cd /usr/local && curl -k -O ${download_url} && bash agent_install.sh -t ${version} -u {uniagentVersion} -r {regionID}
    Agent of the earlier architecture: cd /usr/local && curl -k -O ${download_url} && bash agentInstall.sh

    Replace ${download_url} with the download path in Table 1 and ${version} with the actual Agent version in Agent Features per Version. For example, replace ${download_url} with the download path of CN North-Beijing1. The corresponding installation command is as follows:

    cd /usr/local && curl -k -O https://obs.cn-north-1.myhuaweicloud.com/uniagent-cn-north-1/package/agent_install.sh && bash agent_install.sh -t 2.5.6

    If Telescope process starts successfully. is displayed after the command is executed, the installation is successful.

  3. Run the following command to clear the installation script:
    if [[ -f /usr/local/uniagent/extension/install/telescope/bin/telescope ]]; then rm /usr/local/agent_install.sh; else rm /usr/local/agentInstall.sh; fi

After you configure the Agent, its status is still displayed as Uninstalled because the monitoring data is not reported yet. Wait 3 to 5 minutes and refresh the page.