1.更改VPS的系统为:Ubuntu 15.04 64 Bit 并使用root登录系统。
2.设置系统的区域语言:
第一步,更新并升级系统
apt-get update && apt-get upgrade
第二步,安装nano
apt-get install nano
第三步,编辑文件
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
第四步,生成相关的locales
locale-gen --purge
第五步,编辑文件
nano /etc/default/locale
输入如下内容:
LANG="en_HK.UTF-8"
LANGUAGE="en_HK:en"
LC_ALL="en_HK.UTF-8"
完成后重启VPS后输入locale查看是否正常,正常显示如下信息:
root@reki:~# 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
3.为Odoo创建一个名为Odoo的新的用户
# apt-get update && apt-get upgrade # Install system updates
# apt-get install sudo # Make sure 'sudo' is installed
# useradd -m -g sudo -s /bin/bash odoo # Create an 'Odoo' user with sudo powers
# passwd odoo # Ask and set a password for the new user
4.使用odoo账户登录并从Source安装Odoo
$ whoami
odoo
$ echo $HOME
/home/odoo
$ sudo apt-get update && sudo apt-get upgrade # Install system updates
$ sudo apt-get install git # Install Git
$ mkdir ~/odoo9-dev # Create a directory to work in
$ cd ~/odoo9-dev # Go into our work directory
$ git clone https://github.com/odoo/odoo.git -b 9.0 --depth=1 # Get Odoo source code
$ sudo apt-get install python
$ ./odoo/odoo.py setup_deps # Installs Odoo system dependencies
$ ./odoo/odoo.py setup_pg # Installs PostgreSQL & db superuser for unix user
5.到此全部安装完成,启动Odoo如下:
~/odoo9-dev/odoo/odoo.py
在地址栏输入IP:8069就可以访问了。