当前位置:网站首页>Deploy odoo to the server and configure it as a service

Deploy odoo to the server and configure it as a service

2022-06-22 16:09:00 The evening breeze brushed the willow face

Set up Odoo Serving the system

establish systemd service

If you are using a more recent operating system , Such as Debian 8 or Ubuntu 16.04, Your startup service should be systemd. To add a service to the system , Just create a file that describes the service . We created /lib/systemd/system/odoo.service Document and add the following :

[Unit]
Description=Odoo
After=postgresql.service
 
[Service]
Type=simple
User=odoo
Group=odoo
ExecStart=/home/odoo/odoo-12/odoo-bin -c /etc/odoo/odoo.conf
 
[Install]
WantedBy=multi-user.target

Next, we need to register the new service with the following command :

sudo systemctl enable odoo.service

Start the service with the following command :

sudo systemctl start odoo

Use the following command to check the service status :

sudo systemctl status odoo

Last , To stop service , Please use the following command :

sudo systemctl stop odoo
原网站

版权声明
本文为[The evening breeze brushed the willow face]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221448123383.html