一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

Install Odoo 8 on CentOS 7

 lchjczw 2015-05-18

on Install Odoo 8 on CentOS 7

In this article, we will go through the installation of Odoo 8 on CentOS 7 machine. We will create a Python virtual environment and use the Odoo source code from Github.

Install and configure PostgreSQL 9.3

First of all, we need to install PostgreSQL. We'll install PostgreSQL version 9.3 from the official PostgreSQL repository.

rpm -Uvh http://yum./9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm  
yum -y install postgresql93 postgresql93-server postgresql93-devel --disablerepo=* --enablerepo=pgdg93  

After installing the packages, we'll initialize the database, enable the service on boot and start the PostgreSQL server.

/usr/pgsql-9.3/bin/postgresql93-setup initdb
systemctl enable postgresql-9.3.service  
systemctl start postgresql-9.3  

The following command will create a new PostgreSQL user named odoo:

su - postgres -c "createuser -s odoo" 2> /dev/null || true  

Install all nessesary packages

We need the development tools installed:

yum -y groupinstall "Development tools"  

Next, we'll install a few dependencies:

yum -y install zlib-devel bzip2-devel openssl openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libpcap-devel xz-devel git libpng libjpeg libXext curl xorg-x11-font-utils fontconfig python-virtualenv libevent-devel libxml2-devel libxslt-devel openldap-devel openjpeg-devel freetype-devel libjpeg-turbo-devel libtiff-devel kernel-devel  

Enable EPEL Repository:

wget http://dl./pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm  
rpm -ivh epel-release-7-5.noarch.rpm  

To be able to print documents in Odoo we'll need the wkhtmltopdf package, which is available in the EPEL repository.

To install wkhtmltopdf run the following command:

yum --enablerepo=epel install wkhtmltopdf  

We'll install Python packages with pip, so let's install pip from the EPEL repository:

yum --enablerepo=epel install python-pip  

Clone Odoo 8 from GitHub

We are going to clone the Odoo 8 repository from GitHub to the /opt/odoo directory.

git clone --branch 8.0 https://www.github.com/odoo/odoo /opt/odoo  

Later, if you want to update your Odoo repository to the latest version just run git pull.

Create a virtual environment for Odoo

Create a new system user named odoo, change the owner ship of the /opt/odoo directory to odoo user and group and switch to it, using the following commands:

useradd odoo  
chown -R odoo: /opt/odoo  
su - odoo  

Now we'll create a virtual environment and install all necessary packages from the requirements.txt file:

/bin/virtualenv odoo
source odoo/bin/activate  
PATH=$PATH:/usr/pgsql-9.3/bin  
pip install -r /opt/odoo/requirements.txt  
exit  

The installation will take a few minutes so go grab a coffee.

Create configuration file and systemctl service

Next, we'll create a basic configuration file and systemctl service for our Odoo instance.

cat > /etc/odoo-server.conf << EOF  
[options]
admin_passwd = admin  
db_host = False  
db_port = False  
db_user = odoo  
db_password = False  
addons_path = /opt/odoo/addons  
without-demo=all  
no-xmlrpc = True  
no-xmlrpcs = True  
no-netrpc = True  
log_db = False  
log_handler = ['[\'["[\\\':INFO\\\']"]\']']  
log_level = info  
logfile = False  
login_message = False  
logrotate = True  
syslog = False  
EOF  
cat > /usr/lib/systemd/system/odoo.service << EOF  
[Unit]
Description=Odoo 8.0 ERP and CRM server  
After=postgresql-9.3.service

[Service]
Type=simple  
User=odoo  
Group=odoo  
ExecStart=/home/odoo/odoo/bin/python /opt/odoo/openerp-server --config=/etc/odoo-server.conf

[Install]
WantedBy=multi-user.target  
EOF  

You can use the following command to view Odoo log: journalctl -f -u odoo.

Final steps

We also need to open port 8069 in our firewall:

firewall-cmd --zone=pubic --add-port=8069/tcp --permanent  
firewall-cmd --reload  

Finally, we'll enable Odoo on boot and start the service:

systemctl enable odoo.service  
systemctl start odoo  

That's it, Odoo installation is complete. To open Odoo, point your browser at: http://<ip_address>:8069

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀(guān)點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶(hù) 評(píng)論公約

    類(lèi)似文章 更多

    亚洲国产av在线视频| 国产欧美日韩在线一区二区| 国产亚洲精品一二三区| 欧美精品一区二区三区白虎| 日韩熟妇人妻一区二区三区| 午夜福利视频偷拍91| 亚洲国产精品肉丝袜久久| 久久这里只有精品中文字幕| 国产精品视频久久一区| 99国产一区在线播放| 日本免费一区二区三女| 国产又粗又猛又黄又爽视频免费| 亚洲成人黄色一级大片| 国产肥女老熟女激情视频一区| 在线九月婷婷丁香伊人| 亚洲精品蜜桃在线观看| 视频一区中文字幕日韩| 国产老女人性生活视频| 一区二区三区日韩经典| 欧美午夜伦理在线观看| 亚洲午夜av一区二区| 精品午夜福利无人区乱码| 91午夜少妇极品福利| 日韩精品人妻少妇一区二区| 国产91麻豆精品成人区| 青青操视频在线播放免费| 日韩人妻一区二区欧美| 亚洲国产一区精品一区二区三区色| 日韩欧美一区二区黄色| 精产国品一二三区麻豆| 日韩精品少妇人妻一区二区| 好东西一起分享老鸭窝| 丰满熟女少妇一区二区三区| 日韩不卡一区二区在线| 精品一区二区三区乱码中文| 亚洲一区二区精品久久av| 日系韩系还是欧美久久| 激情三级在线观看视频| 91欧美激情在线视频| 欧美日韩国产综合在线| 国产高清视频一区不卡|