尝试运行odoo 10时出现此错误:
OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
ps ax | grep odoo
sudo kill -9 (process_id)
然后我检查了postgresql的状态并重新启动了postgresql。
sudo /etc/init.d/postgresql status sudo /etc/init.d/postgresql restart
问题已成功解决!