暂时还没找到真正的解决办法 只找到临时有效的
查看/etc/profile 这个文件有没有问题
如果有问题执行 export 命令 然后执行source /etc/profile
没有问题 直接执行source /etc/profile
这种办法只对这次登录有效 再次登录还是会丢失
等找到其他办法 会更新