網路城邦
上一篇 回創作列表 下一篇   字體:
夏肇毅知識運算網-如何在Ubuntu上使用不同使用者偵錯OpenERP(Odoo)
2016/06/15 22:06:34瀏覽177|回應0|推薦3

[夏肇毅知識運算網 Mark Hsia's Knowledge Computing Web]

如何在Ubuntu上使用不同使用者偵錯OpenERP(Odoo)

Debug the Odoo in Ubuntu with different user name

Once we've installed the Odoo as a service in Ubuntu, Odoo will be started up automatically. If we want to debug the Odoo, we should stop the Odoo service first. Also, we will encounter the "Peer authentication failed for user "odoo"" error if our login user name is not odoo. In order to conquer these problems we should do the following steps:
1. Stop service:
sudo service odoo stop
2. set the user odoo as a trusted user to all databases from local:
sudo nano /etc/postgresql/9.3/main/pg_hba.conf
 
then add the following line into the file:
local all odoo trust
 
then restart the postgresql:
sudo service postgresql restart
3. Start odoo with the db user odoo:
cd /usr/bin
./odoo.py -r odoo


Reference:

Peer authentication failed for user "odoo"
( 知識學習隨堂筆記 )
回應 推薦文章 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=markhsia&aid=61846187