Odoo Linux服务器一键安装脚本使用指南

2018-12-05

Odoo安装脚本介绍

Odoo:全球第一免费开源ERP Linux服务器一键部署脚本使用指南


为了帮助更多Linux服务器维护人员快速部署Odoo,为此开源智造(OSCG)基于André Schenkels曾经开放的openerp-install-scripts所构建的基础进行了全面的升级改造。最终实现一建快速部署(建议在Ubuntu 18.04 16.04中使用)。

脚本安装之前的工作(以ubuntu 18.04为例)

1. sudo nano /etc/apt/source.list 清空默认文件信息改为以下文件信息

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution.

deb http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted

# deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the

## distribution.

deb http://cn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

## team. Also, please note that software in universe WILL NOT receive any

## review or updates from the Ubuntu security team.

deb http://cn.archive.ubuntu.com/ubuntu/ bionic universe

# deb-src http://archive.ubuntu.com/ubuntu/ bionic universe

deb http://cn.archive.ubuntu.com/ubuntu/ bionic-updates universe

# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

## team, and may not be under a free licence. Please satisfy yourself as to

## your rights to use the software. Also, please note that software in

## multiverse WILL NOT receive any review or updates from the Ubuntu

## security team.

deb http://cn.archive.ubuntu.com/ubuntu/ bionic multiverse

# deb-src http://archive.ubuntu.com/ubuntu/ bionic multiverse

deb http://cn.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as

## extensively as that contained in the main release, although it includes

## newer versions of some applications which may provide useful features.

## Also, please note that software in backports WILL NOT receive any review

## or updates from the Ubuntu security team.

deb http://cn.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

# deb-src http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's

## 'partner' repository.

## This software is not part of Ubuntu, but is offered by Canonical and the

## respective vendors as a service to Ubuntu users.

# deb http://archive.canonical.com/ubuntu bionic partner

# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted

# deb-src http://security.ubuntu.com/ubuntu/ bionic-security main restricted

deb http://security.ubuntu.com/ubuntu/ bionic-security universe

# deb-src http://security.ubuntu.com/ubuntu/ bionic-security universe

deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse

# deb-src http://security.ubuntu.com/ubuntu/ bionic-security multiverse

2.更新源信息

sudo apt-get update

3.更新服务器所有环境至最新版,确保pip3 install -r requirements.txt不会出现错误

sudo apt-get dist-upgrade

安装步骤

Odoo:全球第一免费开源ERP Linux服务器一键部署脚本使用指南


1. 文件获取下载

sudo wget http://www.oscg.cn/upload/tools/odoo_install.sh

2.修改下载的脚本权限

sudo chmod +x odoo_install.sh

3.执行一键服务器部署安装脚本

sudo ./odoo_install.sh

脚本参数说明

Odoo:全球第一免费开源ERP Linux服务器一键部署脚本使用指南


OE_USER 将是系统用户的用户名。

INSTALL_WKHTMLTOPDF 如果您不想安装Wkhtmltopdf,则设置为False,如果要安装它,则应将其设置为True

OE_PORT 是Odoo所运行的端口,例如8069。

OE_VERSION 是要安装的Odoo版本,例如本次一键部署为Odoo V12版本,本次默认参数为12.0参数。

OE_SUPERADMIN 是此次部署Odoo安装的数据库管理密码(本次默认Odoo数据库管理密码为admin

文章编辑:开源智造(OSCG) - 源自欧洲,业界领先的免费开源ERP专业服务商


最近更新的blog

2018-12-05

Odoo Linux服务器一键安装脚本使用指南

2018-11-26

Odoo权威性能测试报告

2018-10-08

Odoo(OpenERP) 深度应用操作(四)

2018-10-08

Odoo功能模块仓存深度应用方案(二)

2018-10-08

Odoo仓存功能模块深度应用(一)

2018-10-08

免费开源ERP-成功案例分析(3)

2018-10-08

免费开源ERP-成功案例分析(2)

2018-10-08

免费开源ERP-成功案例分析(1)

2018-10-08

基于免费开源ERP技术构建IPFS区块链的企业应用场景

2018-10-08

新零售IT系统的如何免费开源搭建?