1.切换到root用户
adduser odoo
2.给root权限
Vi /etc/sudoers
# User privilege specification
root ALL=(ALL:ALL) ALL
odoo ALL=(ALL:ALL) ALL
修改源码目录权限: Chown-Rodoo:odoo odoo11e
3.更新依赖
apt update
apt upgrade
apt install git
4.安装nodejs
apt-getinstall npm
npm install -gless
5.Ubuntu18默认已经安装好了Python3.6和Python2.7 , 但是默认使用的是python2.7
Cp/usr/bin/python3/usr/bin/python
修改默认为python3.6
6. 安装pip3
apt-get install -y python3-pip
6.安装依赖库
apt-get install git python3-pippython3-dev
apt-get installpython-dev libldap2-dev libsasl2-dev
apt-get installlibxml2-dev libxslt1-dev libevent-dev libpq-dev libjpeg-dev poppler-utils
apt-get installlibldap2-dev libsasl2-dev
apt-get install node-less node-clean-css
pip3 install clientBabel decorator docutilsebaysdk Feedparser geventgreenlet html2text Jinja2lxml Mako MarkupSafemock num2words ofxparsepasslib Pillow psutilpsycopg2 pydot pyldappyparsing PyPDF2 pyserialpython-dateutil pytz pyusbPyYAML qrcode reportlabrequests six suds-jurkovatnumber vobject WerkzeugXlsxWriter xlwt xlrd
7.安装wkhtmltopdf
下载最新的包http://wkhtmltopdf.org/downloads.html --- Linux (Ubuntu Trusty)
32-bit/64-bit built on Ubuntu 14.04.1
wgethttp://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
安装依赖的组件:
apt-getinstall libxfont1 xfonts-encodings xfonts-utils xfonts-base xfonts-75dpi
安装wkhtmltopdf:
dpkg -iwkhtmltox-0.12.2.1_linux-trusty-amd64.deb
apt-get install postgresql -y
su -c "createuser odoo " postgres
createdb --owner=odoo myodoo
9.启动
切换为odoo用户 su odoo
Cd /home/odoo/odoo11e
Cp ./setup/odoo./odoo-bin
./odoo-bin -d myodoo
然后访问 : http://127.0.0.1:8069 就会打开页面
然后就可以添加app了。