---
title: 安装A-FOT自动反馈编译组件
description: "下载A-FOT代码以安装A-FOT自动反馈编译组件，并修改其中的编译参数以满足自动反馈编译需求。"
url: https://www.hikunpeng.com/document/detail/zh/boostdb/systemcollaborativeoptimization/cfgo/kunpengdbsmysqlgcc_20_0006.html
sourcePath: /source/zh/boostdb/systemcollaborativeoptimization/cfgo/kunpengdbsmysqlgcc_20_0006.html
indexId: 2fe4f898d29c40eb76ef1231e8bf516dfc1c7b8815b20eb1d5b9ae1b865b3bf187
---
# 安装A-FOT自动反馈编译组件

下载A-FOT代码以安装A-FOT自动反馈编译组件，并修改其中的编译参数以满足自动反馈编译需求。

#### 操作步骤

1. 进入“home”目录。
  1 cd /home

2. 从Gitcode下载A-FOT代码。
  1 git clone https://gitcode.com/openeuler/A-FOT.git

  如果出现服务器无法连接外网导致不能下载A-FOT代码，请参见（可选）配置网络代理进行解决。 如果下载A-FOT代码过程中提示“SSL certificate problem: self signed certificate in certificate chain”，可以通过关闭SSL校验解决。 1 git config --global http.sslVerify false 也可使用Yum源方式安装A-FOT。该方式安装A-FOT的默认路径为“/usr/bin/”。 1 yum install A-FOT


#### （可选）配置网络代理

下载A-FOT代码需要连接外网，如果环境无法访问外网，需要配置网络代理；如果环境可以访问外网，则请跳过本小节。

1. 打开“/etc/profile”文件。
  1 vim /etc/profile

2. 按“i”进入编辑模式，在“/etc/profile”文件中增加以下内容。用户名、密码、代理IP地址和代理端口等信息，请根据实际情况填写。
  1 2 3 export http_proxy="http://用户名:密码@代理IP地址:代理端口" export https_proxy=$http_proxy export no_proxy=127.0.0.1,.huawei.com,localhost,local,.local

3. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
4. 使代理生效。
  1 source /etc/profile
