QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 767|回复: 2

关于环境变量的问题

[复制链接]
发表于 2005-5-30 20:06:13 | 显示全部楼层 |阅读模式
我用vim在.bash_profile里面编辑了
PATH=$PATH:$HOME/bin
PATH=/opt/ids/bin:$PATH
export PATH
unset USERNAME

psql是/opt/ids/bin里的命令

[zengyi@localhost zengyi]$ psql -l
bash: psql: command not found

这是为什么呢,?是不是我编辑错了?
谢谢
发表于 2005-5-30 23:40:48 | 显示全部楼层
重启了吗,或者要先:
[code:1]source .bash_profile[/code:1]
让设置生效!还有第一行和第二行为什么不放在一起?
[code:1] PATH=$PATH:$HOME/bin:/opt/ids/bin
export PATH
unset USERNAME [/code:1]
回复

使用道具 举报

 楼主| 发表于 2005-5-31 13:24:14 | 显示全部楼层
我没有重启,现在解决了.
谢谢版主大人
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-2 01:22 , Processed in 0.041462 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表