1 安装Ubuntu - 省略
2 更新并升级系统,安装必要的包
# apt-get update && apt-get upgrade # apt-get install nano sudo python git node-less
如果是使用的VPS上的Ubuntu,某些VPS提供商提供的Ubuntu有可能是minimal版本,有可能需要设置语言区域,如有必要就进行步骤3,否则直接进入步骤4
3 设置系统的区域语言:
# nano /var/lib/locales/supported.d/local 输入如下内容: en_HK.UTF-8 UTF-8 en_US.UTF-8 UTF-8 zh_CN.UTF-8 UTF-8 # locale-gen --purge # nano /etc/default/locale 输入如下内容: LANG="en_HK.UTF-8" LANGUAGE="en_HK:en" LC_ALL="en_HK.UTF-8"
完成后重启系统后输入locale查看是否正常,正常显示如下信息:
[email protected]:~# locale LANG=en_HK.UTF-8 LANGUAGE=en_HK:en LC_CTYPE="en_HK.UTF-8" LC_NUMERIC="en_HK.UTF-8" LC_TIME="en_HK.UTF-8" LC_COLLATE="en_HK.UTF-8" LC_MONETARY="en_HK.UTF-8" LC_MESSAGES="en_HK.UTF-8" LC_PAPER="en_HK.UTF-8" LC_NAME="en_HK.UTF-8" LC_ADDRESS="en_HK.UTF-8" LC_TELEPHONE="en_HK.UTF-8" LC_MEASUREMENT="en_HK.UTF-8" LC_IDENTIFICATION="en_HK.UTF-8" LC_ALL=en_HK.UTF-8
4 为Odoo创建一个名为Odoo的新的用户
# useradd -m -g sudo -s /bin/bash odoo # passwd odoo
5 使用odoo账户登录并从Source安装Odoo
$ whoami odoo $ echo $HOME /home/odoo $ mkdir ~/odoo9-dev $ cd ~/odoo9-dev $ git clone https://github.com/odoo/odoo.git -b 9.0 --depth=1 $ ./odoo/odoo.py setup_deps $ ./odoo/odoo.py setup_pg
6 到此全部安装完成,启动Odoo如下:
$ ~/odoo9-dev/odoo/odoo.py
时间: 2024-12-28 13:10:55