Odoo13 企业版源码 Ubuntu 18.04服务器中安装

  • 首先服务器的版本应是Ubuntu 18.04,安装的python版本是应3.6
  • 若服务器的版本是19以上,安装的python版本是3.7,后期启动部分文件安装不了Odoo13 企业版源码 Ubuntu 18.04服务器中安装_第1张图片

 

一.准备好源码 (不是社区版)    

        Odoo13 企业版源码 Ubuntu 18.04服务器中安装_第2张图片

Odoo13 企业版源码 Ubuntu 18.04服务器中安装_第3张图片

源码请私聊qq1030460562

二.开始部署

  1. 检查版本
    lsb_release -a
    Odoo13 企业版源码 Ubuntu 18.04服务器中安装_第4张图片
  2. 先更改更新源为阿里,默认是连接到美国
    cd /etc/apt
    sudo mv sources.list sources.list_bak
    添加新的源文件:sudo vi sources.list
    deb http://mirrors.aliyun.com/ubuntu/ bionic main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main multiverse restricted universe
    deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main multiverse restricted universe
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main multiverse restricted universe
    

     

    下面依次安装
    sudo apt update && apt upgrade -y
    sudo apt install python3-pip build-essential wget python3-dev python3-venv python3-wheel libxml2-dev libxslt-dev libzip-dev libldap2-dev libpq-dev libsasl2-dev python3-setuptools node-less nodejs npm
    安装插件
    sudo npm install -g rtlcss
    sudo npm install -g less
    sudo npm install -g less-plugin-clean-css
    sudo pip3 install scss
    sudo pip3 install pypdf2
    sudo useradd -m -d /opt/odoo13 -U -r -s /bin/bash odoo13
    安装数据库
    sudo apt-get install -y postgresql
    sudo su - postgres -c "createuser -s odoo13"
    安装wkhtmltopdf
    wget https://builds.wkhtmltopdf.org/0.12.1.4/wkhtmltox_0.12.1.4-1.bionic_amd64.deb
    sudo apt install ./wkhtmltox_0.12.1.4-1.bionic_amd64.deb
     

  3. 拷贝到ubutnu home目录下,然后使用命令将其拷贝到对应工作目录
    sudo cp -rf ~/odoo /opt/odoo13
    授权
    sudo su - odoo13
    cd /opt/odoo13
    python3 -m venv odoo-venv
    source odoo-venv/bin/activate

  4. 【先把pip3切换到阿里源:

    mkdir ~/.pip

    vi ~/.pip/pip.conf

    # 然后将下面这两行复制进去就好了

    [global]

    index-url = https://mirrors.aliyun.com/pypi/simple

  5. pip3 install wheel

  6. pip3 install Babel passlib lxml charset decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 libsass==0.12.3 Mako MarkupSafe mock num2words ofxparse Pillow psutil psycogreen psycopg2 pyldap pydot pyparsing PyPDF2 pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd firebase-admin zeep polib

  7. deactivate

  8. mkdir /opt/odoo13/odoo-custom-addons

  9. exit


  10. 未完待续~

 































 

 

 

 

你可能感兴趣的:(Odoo,odoo13社区版,odoo13企业版)