1、编辑profile文件

  第一步:vim /etc/profile

2、在最后面添加你的配置

  第一步:export {key}={value}

3、退出编辑状态

  第一步:Esc按键

  第二步::wq+回车

4、重启profile

  第一步:source /etc/profile

 

end

如有疑问可咨询: