Linux配置环境变量


  • 编辑 /etc/profile
nano -w /etc/profile
 
  • 设置软件环境变量
#set ZooKeeper env
export PATH=/usr/local/zookeeper/bin:$PATH
 
  • 让环境变量立即生效
source /etc/profile
原文地址:https://www.cnblogs.com/gdufs/p/6474264.html