postgreSQL增加环境变量
- Mac OS增删环境变量
1 . 首先查看shell版本
echo $SHELL #Mac OS X 10.3之后默认的是Bourne Shell
2 . 针对Bourne Shell添加环境变量
打开~/.bash_profile 文件
touch ~/.bash_profile
open -t ~/.bash_profile新增环境变量
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
让配置生效
source ~/.bash_profile
本文介绍如何在MacOS环境下为PostgreSQL配置环境变量。主要包括:确定shell类型、编辑.bash_profile文件以添加PostgreSQL路径并使更改生效。
2622

被折叠的 条评论
为什么被折叠?



