VestaCP CentOS安装PostgreSQL

  1. 安装PostgreSQL软件包
    代码 (Text):
    yum install --enablerepo=remi postgresql postgresql-server postgresql-contrib phpPgAdmin
  2. 初始化数据库
    代码 (Text):
    service postgresql initdb
  3. 下载HBA配置文件
    代码 (Text):
    wget http://c.vestacp.com/0.9.8/rhel/pg_hba.conf -O /var/lib/pgsql/data/pg_hba.conf
  4. 启动PostgreSQL
    代码 (Text):
    service postgresql start
  5. 设置Oracle用户密码
    代码 (Text):
    su - postgres
    psql -c "ALTER USER postgres WITH PASSWORD 'pgp4sw0rd'"
    exit
  6. 开启VestaCP的PostgreSQL支持:将/usr/local/vesta/conf/vesta.conf中的DB_SYSTEM设置为 'mysql,pgsql'
  7. 添加PostgreSQL数据库到VestaCP控制台
    代码 (Text):
    v-add-database-host pgsql localhost postgres pgp4sw0rd
  8. 下载PhpPGAdmin的配置文件
    代码 (Text):
    wget http://c.vestacp.com/0.9.8/rhel/pga.conf -O /etc/phpPgAdmin/config.inc.php
    wget http://c.vestacp.com/0.9.8/rhel/httpd-pga.conf -O /etc/httpd/conf.d/phpPgAdmin.conf
  9. 重启Apache
    代码 (Text):
    service httpd restart

給TA打賞
共{{data.count}}人
人已打賞
服務器運維

VestaCP CentOS开启ProFTPD支持

2015-9-16 5:05:59

服務器運維

VestaCP CentOS下开启WSGI支持

2015-9-16 5:07:47

0 Reply AAuthor MManager
    暫無討論,說說你的看法吧
搜索