当前位置: 首页 > 数据库 > postgresql >

postgresql run文件安装

-- run文件安装postgres
 
run文件安装之前,先创建postgres用
# useradd postgres
# echo "postgres" | passwd --stdin postgres 或者 passwd postgres => postgres
 
postgrepsql run文件下载地址:
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
 
# cd /
# rz postgresql-10.5-1-linux-x64.run
# chmod +x postgresql-10.5-1-linux-x64.run
# ./postgresql-10.5-1-linux-x64.run //然后开始图像界面安装

postgres run安装图1

postgres run安装图2
postgres run安装图3

postgres run安装图4
postgres run安装图5
postgres run安装图6
postgres run安装图7
postgres run安装图8
postgres run安装图9
postgres run安装图10
postgres run安装图11



-- 配置postgres环境变量
 
vim .bash_profile
 
export PGHOME=/PostgreSQL/10
export PGDATA=$PGHOME/data 
export PGLOG=$PGHOME/log 
PATH=$PATH:$PGHOME/bin
export MANPATH=$PGHOME/share/man:$MANPATH 
export LANG=en_US.utf8 
export DATE=`date +"%Y-%m-%d %H:%M:%S"` 
export LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH 
------分隔线----------------------------
  • 收藏
  • 挑错
  • 推荐
  • 打印