Checking the Odoo service from the command line

At this point, we can confirm whether our Odoo instance is up and responding to requests as expected.

If Odoo is running properly, we should be able to get a response from it and see no errors in the log file. We can check whether Odoo is responding to HTTP requests inside the server by using the following command:

$ curl http://localhost:8069
<html><head><script>window.location = '/web' +  location.hash;</script></head></html>

In addition, to see what is in the log file, use the following command:

$ sudo less /var/log/odoo/odoo-server.log

You can also follow what is being added to the log file live, using  tail -f as follows:

$ sudo tail -f /var/log/odoo/odoo-server.log