1.修改/etc/profile文件,经过vi或vim增长变量vim
添加可执行文件的所在安装目录blog
2.修改变量以后,须要立刻生效变量设置。可执行[root@mail ~]source /etc/profile变量