参考:https://techjourney.net/install-odoo-8-openerp-in-centos-red-hat-enterprise-linux/
1:yum install postgresql postgresql-server postgresql-libs
2:postgresql-setup initdb
3:# su - postgres
$ psql
postgres=# \password postgres
Enter new password:
Enter it again:
postgres=# \q
$ exit
4:Install EPEL yum install epel-release yum-utils -y
5:Create a file named odoo.repo in /etc/yum.repos.d/ directory, with the following content:
[odoo-nightly]
name=Odoo Nightly repository
baseurl=http://nightly.odoo.com/8.0/nightly/rpm/
enabled=1
gpgcheck=1
gpgkey=https://nightly.odoo.com/odoo.key
6:yum install odoo 这句话实验不行,主要odoo_8.0.20171009.noarch.rpm FAILED
http://nightly.odoo.com/8.0/nightly/rpm/odoo_8.0.20171009.noarch.rpm: [Errno 14] HTTP Error 404 - Not Found
选择rpm源码安装。
yum install yYAML babel dejavu-fonts-common dejavu-sans-fonts fontpackages-filesystem jbigkit-libs libjpeg-turbo libtiff libwebp libxslt libxslt-python libyaml pyOpenSSL pychart pyparsing python-babel python-babel python-beaker python-dateutil python-docutils python-feedparser python-jinja2 python-ldap python-linecache2 python-lxml python-mako python-markupsafe python-openid python-passlib python-paste python-pillow python-psycopg2 python-reportlab python-requests python-six python-tempita python-unittest2 python-urllib3 python-vobject python-werkzeug python2-mock python2-psutil python2-simplejson pytz python2-traceback2 python-xlwt nodejs-less
7:systemctl enable odoo
systemctl start odoo
8:防火墙 firewall-cmd --zone=pubic --add-port=8069/tcp --permanent
firewall-cmd --reload