Linux系统安装Agent
<p class="shortdesc">本文介绍如何在Linux系统上手动安装Agent。</p>
<section class="section attention" id="installInLinuxSystem__pdj_hvm_psb"><div class="tasklabel"><h2 class="doc-tairway">注意事项</h2></div>
<ul class="ul" id="installInLinuxSystem__ul_own_4cn_psb">
<li class="li">安装过程中禁止直接运行二进制文件。</li>
<li class="li">解压安装包的目录路径中不能出现空格。</li>
<li class="li">每次更换运行或解压目录需重新运行安装脚本。</li>
<li class="li">Linux环境需以root用户运行脚本,指定解释器bash或不指定解释器直接运行。</li>
</ul>
</section>
<section class="section limitation" id="installInLinuxSystem__qdj_hvm_psb"><div class="tasklabel"><h2 class="doc-tairway">使用限制</h2></div>
<p class="p">您已购买数据库审计实例。</p>
<p class="p">安装Agent的主机与数据库审计服务之间网络互通。</p>
</section>
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand">
<span class="ph cmd">登录<a class="xref" href="https://www.ocftcloud.com/console/db-audit" target="_blank" rel="external noopener">数据库审计控制台</a>,进入<span class="keyword wintitle">实例列表</span>页面。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击目标实例<span class="ph uicontrol">操作</span>列的<span class="ph uicontrol">管理</span>,进入数据库审计控制台。</span>
<div class="itemgroup info">
<img class="image" id="installInLinuxSystem__d66e47" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222103110011-12277d5f94d4.png" width="700">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">在菜单栏选择<span class="ph menucascade"><span class="ph uicontrol">系统管理</span><abbr> > </abbr><span class="ph uicontrol">Agent管理</span></span>,进入<span class="keyword wintitle">Agent管理</span>页面,选择<span class="keyword wintitle">Agent安装</span>页签。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击<span class="ph uicontrol">Linux</span>下载对应版本的Agent安装包。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">下载完成后,将安装包上传到Linux服务器安装目录(安装目录根据实际情况自行选择),如下图所示。</span>
<div class="itemgroup info">
<img class="image" id="installInLinuxSystem__image_r4y_qbn_psb" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222103110011-13435ae29d53.png" width="600">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">执行<strong class="ph b">tar –xf dbAgent_V1.0.tar.gz</strong>命令解压Agent安装包,并进入Agent安装目录,如下图所示。</span>
<div class="itemgroup info">
<img class="image" id="installInLinuxSystem__image_g3g_pdn_psb" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222103110011-1a71885a9e29.png" width="600">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">在安装目录执行<strong class="ph b">./install.sh</strong>命令安装Agent程序,如下图所示。</span>
<div class="itemgroup info">
<img class="image" id="installInLinuxSystem__image_ssc_rdn_psb" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222103110011-1904ccda93b2.png" width="600">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">Agent安装完成并运行之后,登录数据库审计服务Web界面,在菜单栏选择<span class="ph menucascade"><span class="ph uicontrol">系统管理</span><abbr> > </abbr><span class="ph uicontrol">Agent管理</span></span>,进入<span class="keyword wintitle">Agent管理</span>页面,选择<span class="keyword wintitle">Agent管理</span>页签,查看Agent连接状态信息。</span>
</li></ol></section>
<section class="section result" id="installInLinuxSystem__result_qdw_sdn_psb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p">在<span class="keyword wintitle">Agent管理</span>页面可以看到新生成一条Agent连接记录,并且<span class="ph uicontrol">Agent状态</span>为<span class="ph uicontrol">安装成功</span>。</p>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!