Configure kafka environment variables

Edit profile file

[root@zjj102 module]# vim /etc/profile

Configure Kafka environment variables


# 配置Kafka环境变量开始
export KAFKA_HOME=/root/soft/kafka_2.11-0.11.0.2
export PATH=$PATH:$KAFKA_HOME/bin
# 配置Kafka环境变量结束

# 下面这个东西如果你原来配置文件有了的话,就不用多配置这个,一般这行在最底下.
export PATH

Refresh the configuration file

[root@zjj102 module]# source /etc/profile
[root@zjj102 module]

Check whether the configuration is successful

It indicates that the configuration is successful.

[root@zjj102 module]# echo $KAFKA_HOME
/root/soft/kafka_2.11-0.11.0.2
[root@zjj102 module]# 

Guess you like

Origin blog.csdn.net/qq_41489540/article/details/109130285