实验环境
centos7_x64
实验软件
odoo_8.0.20170101.noarch.rpm
软件安装
yum install -y /root/odoo_8.0.20170101.noarch.rpm
yum install -y yum-utils postgresql postgresql-server postgresql-libs
postgresql-setup initdb
su - postgres
-bash-4.2$ psql
postgres=# \password postgres
Enter new password:
Enter it again:
postgres=# \l 查看数据库
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
(3 rows)
postgres=# \q
exit
cp -pv /var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf.bak
tail -n1 /var/lib/pgsql/data/pg_hba.conf
host all all 0.0.0.0/0 md5 添加配置
systemctl enable postgresql && systemctl start postgresql
systemctl enable odoo && systemctl start odoo
netstat -tuplna | grep 8069
tcp 0 0 0.0.0.0:8069 0.0.0.0:* LISTEN 5173/python
netstat -tuplna | grep postgres
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 3648/postgres
udp 0 0 127.0.0.1:57711 127.0.0.1:57711 ESTABLISHED 3648/postgres