postgresql安装后环境变量配置
2010-11-26 22:41
555 查看
15.6.2. Environment Variables
If you installed into /usr/local/pgsql or some other location that is not searched for programs by default, you should add /usr/local/pgsql/bin (or whatever you set --bindir to in step 1) into yourPATH. Strictly speaking, this is not necessary, but it will make the use of PostgreSQL much more convenient.To do this, add the following to your shell start-up file, such as ~/.bash_profile (or /etc/profile, if you want it to affect all users):
PATH=/usr/local/pgsql/bin:$PATH export PATH
If you are using csh or tcsh, then use this command:
set path = ( /usr/local/pgsql/bin $path )
To enable your system to find the man documentation, you need to add lines like the following to a shell start-up file unless you installed into a location that is searched by default:
MANPATH=/usr/local/pgsql/man:$MANPATH export MANPATH
The environment variables PGHOST and PGPORT specify to client applications the host and port of the database server, overriding the compiled-in defaults. If you are going to run client applications remotely then it is convenient if every user that plans to use the database sets PGHOST. This is not required, however; the settings can be communicated via command line options to most client programs.
相关文章推荐
- 非关系型数据库MongoDB安装及环境变量配置
- linux下mysql的安装以及环境变量的配置
- Ubuntu安装jdk,正确配置环境变量
- Java JDK8 安装及环境变量配置
- Ubuntu安装JDK与环境变量配置
- windown 解压缩版Mysql安装和环境变量配置【绝对成功】
- JDK安装与环境变量配置
- eclipse安装 环境变量配置
- WIN7 64位系统安装JDK并配置环境变量
- win7下JDK的安装环境变量配置【图文详解】
- jdk安装及环境变量配置
- JNI学习及jdk安装环境变量配置
- jdk的安装和环境变量的配置
- 安装JDK后配置三个环境变量
- window x86下安装JDK并且配置环境变量
- JAVA安装,环境变量配置
- ant的安装、环境变量配置
- JDK安装与环境变量配置
- Android SDK的安装与环境变量配置
- Windows中 RabbitMQ安装与环境变量配置