---
title: 添加Flink到环境变量
description: 1. 打开配置文件。
url: "https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/Flink/kunpengflink_04_0019.html"
---

# 添加Flink到环境变量

1. 打开配置文件。
  1 vi /etc/profile

2. 按“i”进入编辑模式，添加Flink到环境变量。
  1 2 export FLINK_HOME=/usr/local/flink export PATH=$FLINK_HOME/bin:$PATH

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