linux环境下,每次使用命令都需要source一遍,实在是麻烦~ 执行一下操作,问题就解决了! 1、切换root用户; 2、vim ~/.bashrc,末尾添加一行:source /etc/profile 3、保存 搞定!