随笔:Ubuntu环境变量在root下无效的解决方法
随笔:Ubuntu环境变量在root下无效的解决方法
转载:https://blog.csdn.net/wzying25/article/details/78738202
产生原因:非root 和 root 的环境变量配置文件不同
处理思路:将~/.bashrc相应的配置变量赋值到/etc/profile中
解决方法:/root/.bashrc尾添加source /etc/profile
执行...
转载
2019-02-16 20:19:33 ·
496 阅读 ·
0 评论