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

Start odoo
sudo su - odoo -s /bin/bash
cd /odoo/odoo-server
./odoo-bin -c /etc/odoo-server.conf

How can Use sudo service odoo-server start

In Ubuntu20.4/odoo14

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
Creating a Systemd Unit File will help you achieve the Same

Open any of your text editor and create a service unit file called odoo14.service 

use the following command in Command line (terminal):

sudo nano /etc/systemd/system/odoo14.service

then add following code to it:


[Unit]
Description=Odoo14
Requires=postgresql.service
After=network.target postgresql.service
[Service]
Type=simple
SyslogIdentifier=odoo14
PermissionsStartOnly=true
User=odoo14
Group=odoo14
ExecStart=/opt/odoo14/odoo-venv/bin/python3 /opt/odoo14/odoo/odoo-bin -c /etc/odoo14.conf
StandardOutput=journal+console
Restart=always [Install] WantedBy=multi-user.target

Notify systemd that a new unit file exists:

sudo systemctl daemon-reload

Start the Odoo service and enable it to start on boot by running:

sudo systemctl enable --now odoo14


"Restart=always"  helps you to make the Odoo always alive whenever the service is going down.


Thanks

Happy to help,

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

Hi
go to your odoo folder in terminal and use below

./odoo-bin --addons=addons,../project/ --db-filter=db_name -d db_name

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 20
3926
1
thg 7 22
10304
1
thg 9 21
2624
3
thg 1 17
3789
4
thg 5 23
16501