CentOS 7安装odoo

手动安装odoo(centos)

 

1.安装postgresql9.5的版本

$ yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7.3-x86_64/pgdg-centos95-9.5-3.noarch.rpm

$ yum install postgresql95-server postgresql95-contrib

$ /usr/pgsql-9.5/bin/postgresql95-setup initdb

$ systemctl enable postgresql-9.5.service

$ systemctl start postgresql-9.5.service

 

2.安装odoo

$ wget http://nightly.odoo.com/10.0/nightly/rpm/odoo_10.0.20190517.noarch.rpm

$ yum install odoo_10.0.20190517.noarch.rpm

$ sudo systemctl enable odoo $ sudo systemctl start odoo

官方推荐:

$ sudo yum install yum-utils $ sudo yum-config-manager --add-repo=https://nightly.odoo.com/10.0/nightly/rpm/odoo.repo $ sudo yum install -y odoo $ sudo systemctl enable odoo $ sudo systemctl start odoo

 

注:这两种方法在安装都出现错误

Error: Package: odoo-10.0.post20190517-1.noarch (/odoo_10.0.20190517.noarch)

Requires: python-openid

Error: Package: odoo-10.0.post20190517-1.noarch (/odoo_10.0.20190517.noarch)

Requires: python-xlwt

Error: Package: odoo-10.0.post20190517-1.noarch (/odoo_10.0.20190517.noarch)

Requires: python-vobject

Error: Package: odoo-10.0.post20190517-1.noarch (/odoo_10.0.20190517.noarch)

Requires: nodejs-less

Error: Package: odoo-10.0.post20190517-1.noarch (/odoo_10.0.20190517.noarch)

Requires: python-feedparser

Error: Package: odoo-10.0.post20190517-1.noarch (/odoo_10.0.20190517.noarch)

Requires: python-psutil

Error: Package: odoo-10.0.post20190517-1.noarch (/odoo_10.0.20190517.noarch)

Requires: python-mock

Error: Package: odoo-10.0.post20190517-1.noarch (/odoo_10.0.20190517.noarch)

Requires: pychart

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

 

解决方法:

$ yum update

$ yum -y install epel-release

$ yum -y install python-pip

再执行

$ yum install odoo_10.0.20190517.noarch.rpm

就可以成功安装

此时还是不能通过http://ip:8069来访问,需要关闭防火墙

systemctl stop firewalld

systemctl disable firewalld

你可能感兴趣的:(odoo)