首页 > 系统服务 > 详细

linux环境变量 bash_profile

时间:2019-11-15 13:01:55      阅读:102      评论:0      收藏:0      [点我收藏+]

linux环境变量 bash_profile

[root@iZ23uewresmZ ~]# vi /root/.bash_profile

<pre>
# .bash_profile

# Get the aliases and functions 如果有~/.bashrc这个文件 就运行他
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs 所有环境变量路径要用:冒号分开 不是分好 这个跟win不一样

PATH=$PATH:$HOME/bin:/usr/local/mysql/bin:/usr/local/mysql/lib

export PATH
</pre>

还有运行下更新代码 不然不会更新
<pre>
source .bash_profile
</pre>

 

linux环境变量 bash_profile

原文:https://www.cnblogs.com/newmiracle/p/11865563.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!