ODOO13 centos7.6 源码 安装

一、环境准备

1、python3.7

安装依赖包

yum -y groupinstall "Development tools"  
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel  libffi-devel zlib1g-dev  zlib*

下载软件包

https://www.python.org/ftp/python/3.7.6/Python-3.7.6.tgz
解压
tar -xvzf Python-3.7.6.tgz

建编译安装目录

mkdir /usr/local/python3

编译安装
cd Python-3.7.6

./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl

make && make install

建立软联接

ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3

ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3

验证

# python3 -V
Python 3.7.6
#pip3 -V
pip 19.2.3 from /usr/local/python3/lib/python3.7/site-packages/pip (python 3.7)

2、postgresql-11 数据库

安装 RPM 源
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
安装客户端包
yum install postgresql11
安装服务包
yum install postgresql11-server
初始化和启动运行
/usr/pgsql-11/bin/postgresql-11-setup initdb
systemctl enable postgresql-11
systemctl start postgresql-11

准备用户和库文件

sudo -u postgres createuser -s $USER
createdb $USER

二、git clone ODOO源码

git clone https://github.com/odoo/odoo.git -b 13.0 --depth=1

若github下载速度较慢,可以试一下csdn下载

安装依赖包

cd odoo
pip3 install setuptools wheel
pip3 install -r requirements.txt

三、运行ODOO

python3 odoo-bin

ODOO13 centos7.6 源码 安装_第1张图片

浏览器访问 http://localhost:8069

按提示创建数据库后,登录
ODOO13 centos7.6 源码 安装_第2张图片

 

 

参考文章
https://www.cnblogs.com/xiujin/p/11477419.html

https://www.odoo.com/documentation/13.0/setup/install.html#id13

你可能感兴趣的:(软件安装)