1, https://www.odoo.com/documentation/16.0/administration/install/install.html#setup-install-source
这个是ODOO的帮助文件链接。
2, 源文件安装方式:
$ git clone https://github.com/odoo/odoo.git
这个过程比较慢,可能需要多次操作才能成功。 在~目录下,建立了一个 Odoo的文件夹。
3, 安装pstgresql 创建用户
sudo apt install postgresql postgresql-client
sudo -u postgres createuser -s $user
createdb $User
4, wkhtmltopdf is not installed through pip and must be installed manually in version 0.12.5 for it to support headers and footers. See our wiki for more details on the various versions.
wkhehtmltopdf 需要安装。从wkhtmltopdf.org-> download 上找到对应的版本的链接
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
下载安装包。
用dpkg 解压缩。
~$ sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
如果缺少依赖包 则可以运行
sudo apt-get -f install
然后重新运行 dpkg
5, 运行odoo
cd odoo (转到Odoo源文件所在的文件夹)
python3 odoo-bin --addons-path=addons -d odoo (运行Odoo, -d odoo 是使用 “odoo”的数据库)
odoo数据库没有初始化, 重新运行。
python3 odoo-bin --addons-path=addons -d odoo -i base
以后运行python3 odoo-bin --addons-path=addons -d odoo 就可以了。
6,登录
运行后 就可以通过 http:// <server-address>:8069 从网页进入了。华为云需要增加安全组规则 允许 访问
<server-address>:8069 (如果是本机运行则使用 127.0.0.1:8069)
默认用户, admin,默认密码 admin
Odoo 开发手册:
https://www.odoo.com/documentation/16.0/developer/howtos.html
网友评论