阿里云主机 源码运行 6.1 出怪事了(jeff 已经帮助搞定)
-
sudo su - openerp -s /bin/bash
/opt/openerp/server/openerp-server
这样直接启动,能正常访问
==========================
sudo /etc/init.d/openerp-server start
用后台 方式启动,
主页也能出来,但是 OE server 不能访问数据库了
dbname)) File "/opt/openerp/server/openerp/sql_db.py", line 366, in _locked return fun(self, *args, **kwargs) File "/opt/openerp/server/openerp/sql_db.py", line 421, in borrow
result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)Operational
Error: could not connect to server: Connection refusedIs the server running on
host "localhost" and acceptingTCP/IP connections on port 5342?
~~~~~~~~~~~~~~~~
弄不懂了 -
低级错误,自己写的配置文件里,端口号 弄粗了。
多些 jeff 一眼看出。
=================================
jeff wang 13:47:16
奇怪啊
jeff wang 13:47:36
配置文件里数据库端口怎么是5342呢?
jeff wang 13:47:43
不是5432么?
ccdos 13:47:48
晕
那我弄错了
ccdos 13:47:52
jeff wang 13:48:04
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5342?
jeff wang 13:48:07
哈哈
ccdos 13:48:11
估计这就是原因了
前台 用了 默认config