error: [Errno 98] Address already in use while installing odoo 10 on ubuntu 16.04

error: [Errno 98] Address already in use while installing odoo 10 on ubuntu 16.04

我正在 ubuntu 16.04 上安装 odoo 10。安装期间所有命令 运行 正常。当我使用下面给出的命令启动 Odoo 服务器时:

cd /opt/odoo/odoo-10.0 
./odoo-bin

我收到一个错误:

error: [Errno 98] Address already in use  

我该如何解决这个问题?

odoo 默认 运行 在 8069 端口上,因此您可以通过 shell 命令找到它:

sudo netstat -anp | grep 8069

如果需要,您可以 运行 通过命令在其他端口上使用 odoo:

./odoo-bin --longpolling-port 3333

你又在使用同一个端口,所以为什么会出现这个错误,我们可以通过下面的命令修复

ps辅助 | grep odoo

这些命令显示您计算机上属于 odoo

的进程数 运行

kill -9 进程号