CentOS7安装Odoo10流程如下
一、更新系统#yum clean all#yum update二、安装 PostgreSQL
1.安装数据库#yum install postgresql postgresql-server postgresql-libs2.初始化数据库#postgresql-setup initdb3.设置开机启动#systemctl enable postgresql4.启动数据库#systemctlstart postgresql5.设置密码#su postgres$ psqlpostgres=#\password postgres输入新密码,再次确认。postgres=#\q#exit三、配置Odoo运行环境
1.安装EPEL包,#yum install epel-release2.添加到Odoo的仓库中#yum install yum-utils#yum-config-manager --add-repo=https://nightly.odoo.com/10.0/nightly/rpm/odoo.repo四、安装Odoo与启动Odoo。
1.安装Odoo,此步骤可能要花费3小时左右,具体根据网络情况定。#yum install-y odoo2.开机自启与启动odoo#systemctl enable odoo //创建开机自启动#systemctl start odoo五、配置防火墙,放行8069端口
#firewall-cmd --zone=public --add-port=8069/tcp --permanent#firewall-cmd --reloadNavicat连接不上postgres数据库
1、打开端口和地址注释#vi /var/lib/pgsql/data/postgresql.conf打开端口5432的注释和listen_addresser = 'localhost' -> listen_addresser = '*'2、配置防火墙,放行5432端口
#firewall-cmd --zone=public --add-port=5432/tcp --permanent#firewall-cmd --reload3、允许PostgreSql远程访问(非必须)
# vi /var/lib/pgsql/data/pg_hba.confhost all all 0.0.0.0/0 md5或trust4、添加tmp文件权限(非必须)
#chown -R postgres:postgres /tmp六、安装完成Google访问
在浏览器中输入ip:8069访问了安装wkhtmltopdf以支持报表导出为PDF格式
#yum install wkhtmltopdf