How to show ports on which Odoo server is running
If you want to show a specific process in Ubuntu using the terminal, then the PS
command is used.
Name
ps - Reports a snapshot of the current processes.
DESCRIPTION
ps displays information about a selection of active processes.
To see every process on the system using BSD syntax:
ps ax
ps axu
Now use the special process from the process list, so use the command grep
,
NAME
grep - print lines matching pattern
DESCRIPTION
grep searches for named input FILES (or standard input if no filenames are specified, or if the filename is a single hyphen-minus (-)) for lines that match the given PATTERN. By default grep prints matching lines.
We now find the odoo server process, so use the following command using the command PIP
,
ps -ax | grep openerp
Conclusion, i.e.
ID
9941
After the kill openerp service, using the command Kill
,
kill -9 <pid_number>
i.e.
kill -9 9941
After executing the kill command, the openerp
service / server is closed. And after you want to check that the service is starting or not, PS
execute the command again to check that the process is turned off or on.
source to share