Linux 命令 – VMDR Linux (.rpm)
安装
sudo rpm -ivh QualysCloudAgent_RHELx86.rpm
分配客户 ID 和激活 ID
sudo /usr/local/qualys/cloud-agent/bin/qualys-cloud-agent.sh ActivationId=<> CustomerId=<>
答案1
创建script.sh
包含以下内容的文件:
#!/bin/bash
rpm -ivh QualysCloudAgent_RHELx86.rpm
/usr/local/qualys/cloud-agent/bin/qualys-cloud-agent.sh ActivationId="$1" CustomerId="$2"
并启动:
sudo ./script.sh activationId customerId