Linux kill process by port number. This command helps you to kill process or services which run under certain port, which might unable to restart properly, like odoo had similar major issues with killing process.

kill -9 $(lsof -t -i:8011)

In case you don’t found “lsof” command than require to install it.,

Ubuntu, install lsof command

sudo apt install lsof

CentOS, instlal lsof command

sudo yum install lsof

kill -9 $(lsof -t -i:8011) with this command, -9 force and kill all subprocess or child process as well.

Tejas Tank, Linux Administrator
SnippetBucket Technologies