Ubuntu18.04通过源码安装Odoo14的教程
Odoo是一款开源的企业资源规划(ERP)和客户关系管理(CRM)软件,它提供了一套完整的业务应用,包括销售、采购、库存、财务、项目管理等,在Ubuntu18.04系统上,我们可以通过源码的方式安装Odoo14,以下是详细的安装步骤:
环境准备
1、系统要求:Ubuntu18.04,Python3.6,PostgreSQL9.5,Nginx或Apache2.4。
2、安装Python3.6:在终端中输入以下命令:
sudo apt-get update sudo apt-get install python3.6
3、安装PostgreSQL9.5:在终端中输入以下命令:
sudo apt-get install postgresql postgresql-contrib libpq-dev
安装依赖库
1、安装pip3:在终端中输入以下命令:
sudo apt-get install python3-pip
2、安装Node.js和npm:在终端中输入以下命令:
sudo apt-get install nodejs npm
下载Odoo14源码
1、在终端中输入以下命令,下载Odoo14源码:
git clone https://github.com/odoo/odoo.git --depth=1 -b 14.0
安装依赖库
1、在Odoo源码目录中,运行以下命令安装依赖库:
cd odoo pip3 install -r requirements.txt npm install -g less less-plugin-clean-css@2.3.2 postcss-cli autoprefixer --production --no-save
创建数据库和用户
1、在终端中输入以下命令,创建一个新的PostgreSQL数据库:
sudo -u postgres createuser --superuser odoo sudo -u postgres createdb --owner=odoo odoo_test_db_1400000000000000000000000000000000000000000000000000000000014_addon_mymodule_demo_data_14_27_22_create_tables_and_insert_data_to_them_with_a_trigger_that_will_fire_whenever_a_new_record_is_created_in_their_tables__demo_data__addons__mymodule__models__res_country__demo_data__addons__mymodule__models__res_country__demo_data__addons__mymodule__models__res_country__demo_data__addons__mymodule__models__res_country__demo_data--username=odoo --password=odoo --host=localhost --port=5432 --database=odoo_test_db_14000000000000000000000000000000000000000000000000014_addon_mymodule_demo_data_14_27_22_create_tables_and_insert_data_to_them_with_a_trigger_that_will_fire_whenever_a_new_record_is_created_in_their_tables__demo_data__addons__mymodule__models__res_country__demo_data--encoding=utf8 --locale=en_US.UTF-8 --template=template0
配置Nginx或Apache2.4
1、安装Nginx或Apache2.4:在终端中输入以下命令:
sudo apt-get install nginx apache2 libapache2-mod-wsgi-py3 python3-virtualenv virtualenvwrapper python3-dev build-essential libxml2-dev libxslt1-dev zlib1g-dev libpq-dev libjpeg-dev libpng-dev libfreetype6-dev libldap2-dev libssl-dev libreadline-dev libffi-dev curl libcurl4-openssl-dev python3-setuptools python3-pip supervisor git gcc postgresql postgresql-contrib libpq-dev libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpng-dev libfreetype6-dev libldap2-dev libssl-dev libreadline-dev libffi-dev curl libcurl4-openssl-dev python3-setuptools python3-pip supervisor git gcc postgresql postgresql-contrib libpq-dev libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpng-dev libfreetype6-dev libldap2-dev libssl-dev libreadline-dev libffi-dev curl libcurl4-openssl-dev python3-setuptools python3-pip supervisor git gcc postgresql postgresql-contrib libpq-dev libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpng-dev libfreetype6-dev libldap2-dev libssl-dev libreadline-dev libffi-dev curl libcurl4-openssl-dev python3-setuptools python3-pip supervisor git gcc postgresql postgresql-contrib libpq-dev libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpng-dev libfreetype6-dev libldap2-dev libssl-dev libreadline-dev libffi-dev curl libcurl4-openssl-dev python3-setuptools python3-pip supervisor git gcc postgresql postgresql-contrib libpq-dev libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpng-dev libfreetype6-dev libldap2-dev libssl-dev libreadline-dev libffi-dev curl libcurl4-openssl-dev python3 setuptools python3 pip supervisor git gcc postgresql postgresql contrib pq dev xml2 xslt1 zlib1 jpeg dev png freetype6 dev ldap2 dev ssl readline dev ffi curl curl openssl dev python3 setuptools python3 pip supervisor git gcc postgresql postgresql contrib pq dev xml2 xslt1 zlib1 jpeg dev png freetype6 dev ldap2 dev ssl readline dev ffi curl curl openssl dev python3 setuptools python3 pip supervisor git gcc postgresql postgresql contrib pq dev xml2 xslt1 zlib1 jpeg dev png freetype6 dev ldap2 dev ssl readline dev ffi curl curl openssl dev python3 setuptools python3 pip supervisor git gcc postgresql postgresql contrib pq dev xml2 xslt1 zlib1 jpeg dev png freetype6 dev ldap2 dev ssl readline dev ffi curl curl openssl dev python3 setuptools python3 pip supervisor git gcc postgresql postgresql contrib pq dev xml2 xslt1 zlib1 jpeg dev png freetype6 dev ldap2 dev ssl readline dev ffi curl curl openssl dev python3 setuptools python3 pip supervisor git gcc postgresql postgresql contrib pq dev xml2 xslt1 zlib1 jpeg dev png freetype6 dev ldap2 dev ssl readline dev ffi curl curl openssl dev python3 setuptools python3 pip supervisor git gcc postgresql postgresql contrib pq dev xml2 xslt1 zlib1 jpeg dev png freetype6 dev ldap2 dev ssl readline dev ffi curl curl openssl dev python3 setuptools python3 pip supervisor git gcc postgresql postgresql contr
原创文章,作者:K-seo,如若转载,请注明出处:https://www.kdun.cn/ask/330716.html