於 CentOS 7.0 安裝 odoo 9.0(遠端資料庫)- 安裝篇

You are here:
< All Topics

此篇教學是使用 CentOS 7.0 Minimal ISO – CentOS-7-x86_64-Minimal-1611.iso 安裝初始系統

yum -y update
yum install -y wget vim open-vm-tools epel-release python-pip unzip
調整防火牆規則
firewall-cmd --zone=public --permanent --add-port=8069/tcp && firewall-cmd --reload
建立 Odoo 9.0 的 yum repo
wget https://nightly.odoo.com/9.0/nightly/rpm/odoo.repo -P /etc/yum.repos.d/
安裝 Odoo 9.0
yum install -y odoo
編輯 config 檔
vim /etc/odoo/openerp-server.conf

[options]
; This is the password that allows database operations:
admin_passwd = 要使用的密碼
db_host = 遠端資料庫 IP
db_port = 5432
db_user = 遠端資料庫用戶名稱
db_password = 遠端資料庫用戶密碼
;dbfilter = ^%d$
addons_path = /opt/apps_odoo9,/usr/lib/python2.7/site-packages/openerp/addons
logfile = /var/log/odoo/odoo-server.log
workers = 8
;limit_memory_hard = 805306368
;limit_memory_soft = 671088640
;limit_request = 8192
;limit_time_cpu = 600
;limit_time_real = 1200
max_cron_threads = 1
安裝相依性 Python 模組
yum install -y https://forensics.cert.org/centos/cert/7/x86_64//pyparsing-2.2.0-1.el7.noarch.rpm http://cbs.centos.org/kojifiles/packages/babel/1.3/6.el7/noarch/python-babel-1.3-6.el7.noarch.rpm

easy_install pip
pip install setuptools==1.4.1
pip install gevent pyserial python-chart pyusb qrcode suds-jurko
安裝 reportlab(用於產生 Barcode)
cd /usr/lib64/python2.7/site-packages/reportlab && wget http://www.reportlab.com/ftp/fonts/pfbfer.zip
unzip pfbfer.zip && rm -f pfbfer.zip
安裝 wkhtmltopdf(用於產生 PDF 報表)
cd ~ && wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm
yum install -y wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm && rm -f wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm
安裝 xlrd xlsxwriter(用於我們自行開發的模組,產生 Excel 表格用,xlrd 為讀取用,或許不需要安裝)
pip install xlrd xlsxwriter
啟動 odoo 並設定為開機服務
systemctl start odoo && systemctl enable odoo

就有一個完整的 Odoo 系統了

接下來可參考 於 CentOS 7.0 安裝 odoo 9.0(遠端資料庫)- 轉移篇 將現行的資料轉移新主機上

Dependency

Installing:
odoo noarch 9.0rc20180619-1 odoo-nightly 105 M
Installing for dependencies:
PyYAML x86_64 3.10-11.el7 base 153 k
antlr-python noarch 2.7.7-30.el7 base 50 k
babel noarch 0.9.6-8.el7 base 15 k
dejavu-fonts-common noarch 2.33-6.el7 base 64 k
dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M
fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k
http-parser x86_64 2.7.1-5.el7_4 base 28 k
jbigkit-libs x86_64 2.0-11.el7 base 46 k
libjpeg-turbo x86_64 1.2.90-5.el7 base 134 k
libtiff x86_64 4.0.3-27.el7_3 base 170 k
libuv x86_64 1:1.19.2-1.el7 epel 121 k
libwebp x86_64 0.3.0-7.el7 base 170 k
libxml2-python x86_64 2.9.1-6.el7_2.3 base 247 k
libxslt-python x86_64 1.1.28-5.el7 base 59 k
libyaml x86_64 0.1.4-11.el7_0 base 55 k
nodejs x86_64 1:6.14.2-1.el7 epel 4.7 M
nodejs-less noarch 1.7.0-2.el7 epel 102 k
npm x86_64 1:3.10.10-1.6.14.2.1.el7 epel 2.5 M
postgresql-libs x86_64 9.2.23-3.el7_4 base 234 k
pyOpenSSL x86_64 0.13.1-3.el7 base 133 k
pychart noarch 1.39-17.el7 epel 190 k
pyparsing noarch 1.5.6-9.el7 base 94 k
python-babel noarch 0.9.6-8.el7 base 1.4 M
python-backports x86_64 1.0-8.el7 base 5.8 k
python-backports-ssl_match_hostname
noarch 3.5.0.1-1.el7 base 13 k
python-beaker noarch 1.5.4-10.el7 base 80 k
python-chardet noarch 2.2.1-1.el7_1 base 227 k
python-dateutil noarch 1.5-7.el7 base 85 k
python-docutils noarch 0.11-0.3.20130715svn7687.el7 base 1.5 M
python-feedparser noarch 5.1.3-3.el7 epel 107 k
python-ipaddress noarch 1.0.16-2.el7 base 34 k
python-jinja2 noarch 2.7.2-2.el7 base 515 k
python-ldap x86_64 2.4.15-2.el7 base 159 k
python-lxml x86_64 3.2.1-4.el7 base 758 k
python-mako noarch 0.8.1-2.el7 base 307 k
python-markupsafe x86_64 0.11-10.el7 base 25 k
python-openid noarch 2.2.5-7.el7 epel 211 k
python-passlib noarch 1.6.5-2.el7 extras 488 k
python-paste noarch 1.7.5.1-9.20111221hg1498.el7 base 866 k
python-pillow x86_64 2.0.0-19.gitd1c6db8.el7 base 438 k
python-psycopg2 x86_64 2.5.1-3.el7 base 132 k
python-reportlab x86_64 2.5-9.el7 base 1.2 M
python-requests noarch 2.6.0-1.el7_1 base 94 k
python-setuptools noarch 0.9.8-7.el7 base 397 k
python-six noarch 1.9.0-2.el7 base 29 k
python-tempita noarch 0.5.1-6.el7 base 33 k
python-urllib3 noarch 1.10.2-5.el7 base 102 k
python-vobject noarch 0.8.1c-8.el7 epel 88 k
python-werkzeug noarch 0.9.1-2.el7 extras 562 k
python-xlwt noarch 0.7.4-5.el7 epel 164 k
python2-mock noarch 1.0.1-9.el7 epel 92 k
python2-psutil x86_64 2.2.1-3.el7 epel 116 k
pytz noarch 2016.10-2.el7 base 46 k
ycssmin noarch 1.0.1-6.el7 epel 12 k

參考資料:

How to install Odoo 9 on a CentOS 7 VPS

How to Setup OpenERP (Odoo) on CentOS 7.x

Setting Up OpenERP (Odoo) 9 with Nginx on RHEL/CentOS and Debian/Ubuntu

Barcode and QR code on Odoo v9

Previous 於 CentOS 7.0 安裝 odoo 9.0
Next 於 Ubuntu 14.04 安裝 odoo 8.0
Table of Contents