---
title: 添加Flink到环境变量
description: "1. 打开配置文件。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/Flink/kunpengflink_04_0019.html
sourcePath: /source/zh/kunpengbds/ecosystemEnable/Flink/kunpengflink_04_0019.html
indexId: 88b6102158941a3027a4ac01f26dd95611b530badf8aa8df83f24b9059e146fa69
---
# 添加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
