安装UHIDS页面在这里:
    https://console.ucloud.cn/uhids/uhids

    1. [root@liabio ~]# wget --timeout 3 -t 2 http://download.uhostsec.service.ucloud.cn:8090/ucloud-secagent-install.sh -O ucloud-secagent-install.sh && chmod +x ucloud-secagent-install.sh && ./ucloud-secagent-install.sh 3c72285 && rm -f ucloud-secagent-install.sh
    2. --2020-10-10 11:06:27-- http://download.uhostsec.service.ucloud.cn:8090/ucloud-secagent-install.sh
    3. Resolving download.uhostsec.service.ucloud.cn (download.uhostsec.service.ucloud.cn)... 10.7.255.86, 10.8.255.117
    4. Connecting to download.uhostsec.service.ucloud.cn (download.uhostsec.service.ucloud.cn)|10.7.255.86|:8090... failed: Connection timed out.
    5. Connecting to download.uhostsec.service.ucloud.cn (download.uhostsec.service.ucloud.cn)|10.8.255.117|:8090... failed: Connection timed out.
    6. Retrying.
    7. --2020-10-10 11:06:34-- (try: 2) http://download.uhostsec.service.ucloud.cn:8090/ucloud-secagent-install.sh
    8. Connecting to download.uhostsec.service.ucloud.cn (download.uhostsec.service.ucloud.cn)|10.7.255.86|:8090... failed: Connection timed out.
    9. Connecting to download.uhostsec.service.ucloud.cn (download.uhostsec.service.ucloud.cn)|10.8.255.117|:8090... connected.
    10. HTTP request sent, awaiting response... 200 OK
    11. Length: 506 [text/plain]
    12. Saving to: ucloud-secagent-install.sh
    13. ucloud-secagent-install.sh 100%[===================================================================>] 506 --.-KB/s in 0s
    14. 2020-10-10 11:06:37 (102 MB/s) - ucloud-secagent-install.sh saved [506/506]
    15. --2020-10-10 11:06:37-- http://download.uhostsec.service.ucloud.cn:8090/ucloud-secagent-linux-release.tar.gz
    16. Resolving download.uhostsec.service.ucloud.cn (download.uhostsec.service.ucloud.cn)... 10.8.255.117, 10.7.255.86
    17. Connecting to download.uhostsec.service.ucloud.cn (download.uhostsec.service.ucloud.cn)|10.8.255.117|:8090... connected.
    18. HTTP request sent, awaiting response... 200 OK
    19. Length: 6915436 (6.6M) [text/plain]
    20. Saving to: ucloud-secagent-linux-release.tar.gz
    21. ucloud-secagent-linux-release.tar.gz 100%[===================================================================>] 6.59M --.-KB/s in 0.02s
    22. 2020-10-10 11:06:37 (438 MB/s) - ucloud-secagent-linux-release.tar.gz saved [6915436/6915436]
    23. ucloud_agent_tmp/
    24. ucloud_agent_tmp/uagent_uninstall.sh
    25. ucloud_agent_tmp/uca_filectl_32
    26. ucloud_agent_tmp/uca_dpconf.json.raw
    27. ucloud_agent_tmp/uagent_log.conf.raw
    28. ucloud_agent_tmp/gentoo_start.sh
    29. ucloud_agent_tmp/uca_base_32
    30. ucloud_agent_tmp/uagent_control.sh
    31. ucloud_agent_tmp/uca_dataproxy_32
    32. ucloud_agent_tmp/uagent_base.conf.raw
    33. ucloud_agent_tmp/uca_dataproxy_64
    34. ucloud_agent_tmp/uca_base_64
    35. ucloud_agent_tmp/uca_filectl_64
    36. ucloud_agent_tmp/install.sh
    37. ucloud_agent_tmp/uca_dplog.conf.raw
    38. ucloud_agent_tmp/uca_filectl.log.raw
    39. ############## uagent install ##############
    40. CentOS Linux release 8.0.1905 (Core)
    41. - check os type complete
    42. /usr/local disk Available space ok
    43. - check disk space complete
    44. - copy file complete
    45. file /usr/local/uagent/bin/uca_base ok
    46. file /usr/local/uagent/bin/uca_filectl ok
    47. file /usr/local/uagent/bin/uca_dataproxy ok
    48. file /etc/init.d/uagent ok
    49. file /etc/rc.d/rc2.d/S59uagent ok
    50. file /etc/rc.d/rc3.d/S59uagent ok
    51. file /etc/rc.d/rc4.d/S59uagent ok
    52. file /etc/rc.d/rc5.d/S59uagent ok
    53. - file check complete
    54. start self test
    55. Parse the config file /usr/local/uagent/conf/uagent_base.conf ok
    56. server agent1.uhostsec.service.ucloud.cn[ip=10.7.255.86]:9090 connect failure
    57. server agent2.uhostsec.service.ucloud.cn[ip=10.8.255.117]:9090 connect success
    58. server 106.75.83.62[ip=106.75.83.62]:9090 connect success
    59. server 106.75.0.46[ip=106.75.0.46]:9090 connect success
    60. server connect success 3 failure 1
    61. - self test complete
    62. Parse the config file /usr/local/uagent/conf/uagent_base.conf ok
    63. - run uagent complete
    64. uagent running ok
    65. - check uagent running status complete
    66. ################## end #####################
    67. [root@liabio ~]#

    命令执行完查看agent是否正常启动:
    ps uax|grep uca
    能够检索到uca字样的文件即为成功。
    ucloud安装UHIDS主机入侵检测 - 图1

    安装成功后,需要等10分钟,页面上才能看到已安装。

    image.png