Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
13958 Lượt xem

I have installed Odoo 10.0 on Ubuntu 16.04 with Odoo's package installer, according to Odoo's original installation documentation: https://www.odoo.com/documentation/10.0/setup/install.html#packaged-installers.

How can I run Odoo from the command line in this setup? All advices found in the Internet do not work.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

The command to execute Odoo 10.0 from the command line with a package install on Ubuntu is simply

ubuntu@ip-192-168-xxx-xxx:~$ odoo

but the command must be executed as the user odoo which was set up by the package installer as non-shell non-login user for security reasons.

In order to execute the command odoo as the odoo user, use the following command with your regular Ubuntu user from anywhere (the first odoo is the user odoo, the second odoo is the command odoo):

ubuntu@ip-192-168-xxx-xxx:~$ sudo -H -u odoo odoo 

Use any command line option you like as described in the documentation, for example:

ubuntu@ip-192-168-xxx-xxx:~$ sudo -H -u odoo odoo -c /etc/odoo/odoo.conf -u all

Enjoy!

Cost me quite some efforts to find out, so I thought to share it for other desparate non-Linux-professionals :-)


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 19
7004
0
thg 1 18
4348
1
thg 5 17
8856
1
thg 3 23
5676
3
thg 12 19
9404