Install Ubuntu, omit
??
Download Odoo Source code
??
Use git to download the source code
Mkdir/opt/openerp/server
Cd/opt/openerp/server
git clone https://github.com/odoo/odoo.git
git checkout Master
??
or Download the source tarball and unzip to /opt/openerp/server
??
If GitHub access is slow, use mirror https://git.oschina.net/jeffery9/odoo
??
??
Prepare the database
??
Installing PostgreSQL
??
sudo apt-get install PostgreSQL
??
Create postgres user Odoo
??
Sudo-u Postgres
CreateUser--createdb--no-createrole--no-superuser--pwprompt Odoo
??
If the data and the Odoo application server are on separate machines, consult the documentation to modify the listening address and access authorization for PostgreSQL.
??
Install the Python library required by Odoo
?
The Requirements.txt file in the Odoo source directory lists all the Python libraries that are dependent on
??
babel==1.3
jinja2==2.7.3
mako==1.0.1
markupsafe==0.23
pillow==2.7.0
python-chart==1.39
pyyaml==3.11
werkzeug==0.9.6
argparse==1.2.1
decorator==3.4.0
docutils==0.12
feedparser==5.1.3
gdata==2.0.18
gevent==1.0.1
greenlet==0.4.5
jcconv==0.2.3
lxml==3.4.1
mock==1.0.1
ofxparse==0.14
passlib==1.6.2
psutil==2.2.0
psycogreen==1.0
psycopg2==2.5.4
pypdf==1.13
pydot==1.0.2
pyparsing==2.0.3
pyserial==2.7
python-dateutil==2.4.0
python-ldap==2.4.19
python-openid==2.2.5
pytz==2014.10
Pyusb==1.0.0b2
qrcode==5.1
reportlab==3.1.44
requests==2.6.0
simplejson==3.6.5
six==1.9.0
suds-jurko==0.6
unittest2==0.8.0
vatnumber==1.2
vobject==0.6.6
wsgiref==0.1.2
xlwt==0.7.
??
Install in binary package mode
??
You can use apt-get to install these dependent python libraries and execute commands
??
apt-get Install python-dateutil python-decorator python-docutils python-feedparser python-imaging PYTHON-JINJA2 python-ldap python-libxslt1 python-lxml python-mako python-mock Python-openid python-passlib Python-psutil python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-pypdf Python-reportlab python-requests python-simplejson python-suds python-tz python-unittest2 python-vatnumber Python-vobject Python-werkzeug PYTHON-XLWT Python-yaml python-gevent
??
Because Ofxparse may not have a built-in library for some Ubuntu versions, it requires a source installation
??
Install it using pip install ofxparse
??
Install in source code mode
??
Or use pip
??
Because lxml LDAP psycopg2 needs to be compiled with GCC , it is necessary to install the library libxml2, Libxslt, Libpq-dev, Libldap2-dev, Libsasl2-dev
??
Using the command apt-get install libxml2 libxslt-dev libpq-dev libldap2-dev Libsasl2-dev
Install them
??
Apt-get Install Python-pip
?
Pip Install-r/opt/openerp/server/requirements. txt
??
It is recommended to install the Python Library as a binary package, and for individual binaries that do not have a binary deb package, use pip for source installation
??
Install less
?
Because the official NPM mirror does not have normal access, must visit the domestic mirror, and the domestic NPM mirror newness, so need to use a newer version of the Nodejs "Unbuntu 12 Nodejs version is 0.6"
??
Use the following command for the latest version of Nodejs
CURL-SL Https://deb.nodesource.com/setup | sudo bash-
Apt-get install-y Nodejs
??
Install less,
NPM install-g Less Less-plugin-clean-css
??
Installing SASS
??
Apt-get Install Ruby-sass
??
Attention
If you cannot access NPM registration in HTTPS mode, switch to HTTP mode
NPM Config Set Registry http://registry.npmjs.org
??
or switch to the domestic NPM mirror station
NPM Config Set Registry http://registry.cnpmjs.org
??
??
Setting up Odoo config files and startup scripts
??
The minimum configuration is as follows
[Options]
; The password that allows database operations:
; ADMIN_PASSWD = Admin
Db_host = 127.0.0.1
Db_port = 5432
Db_user = Odoo
Db_password = 1234
Log_level = Warn
??
Addons_path =/opt/openerp/server/openerp/addons,/opt/openerp/server/addons
??
Auto_reload = True
; workers = 2
??
??
Install startup scripts
??
Copy the /opt/openerp/server/debian/init to /etc/init.d/ and rename it to Odoo
??
Modify Odoo to adjust the correct path for the corresponding settings item
Path=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
Daemon=/opt/openerp/server/openerp-server
Config=/opt/openerp/openerp-server.conf
Logfile=/var/log/openerp/openerp-server.log
??
??
Create odoo databases and install basic apps
??
??
Select Menu Modules, install the desired application
??
If the LESSC is not installed, it will be displayed as
??
Lazy man mode
??
Using VM image files
Download image from Baidu Cloud
User name OpenERP password 0
??
??
??
Install Odoo 9 Transcript