Port Tryton客户机没有';t通过Internet端口8000连接

Port Tryton客户机没有';t通过Internet端口8000连接,port,ubuntu-12.04,tryton,Port,Ubuntu 12.04,Tryton,我已尝试在VM上本地运行ERP,运行正常 但是,客户端无法通过internet连接到它 nmap报告8000端口处于“关闭”状态,也就是说,没有任何内容正在侦听 ~# nmap -PN -p 8000 <IP> Starting Nmap 5.21 ( http://nmap.org ) at 2014-03-05 12:29 EST Nmap scan report for <IP> Host is up (0.00017s latency). PORT ST

我已尝试在VM上本地运行ERP,运行正常

但是,客户端无法通过internet连接到它

nmap报告8000端口处于“关闭”状态,也就是说,没有任何内容正在侦听

~# nmap -PN -p 8000 <IP>

Starting Nmap 5.21 ( http://nmap.org ) at 2014-03-05 12:29 EST
Nmap scan report for <IP>
Host is up (0.00017s latency).
PORT     STATE  SERVICE
8000/tcp closed http-alt
以及数据库连接参数。(在Azure上以类似方式设置的不同VM可以正常工作。) 下面是完整的连接文件

抱歉,netstat报告它仅在本地主机上侦听8000端口:

~# netstat -tupan | grep 8000
tcp        0      0 127.0.0.1:8000          0.0.0.0:*               LISTEN    
        10051/python
tcp        0      0 127.0.0.1:8000          127.0.0.1:58296         ESTABLISHED 
        10051/python
tcp        0      0 127.0.0.1:58296         127.0.0.1:8000          ESTABLISHED       
        13842/python
因为在我的另一个VM上,一切正常,netstat输出不同:

root@Tryton:~# netstat -tupan | grep 8000
tcp6       0      0 :::8000                 :::*                    LISTEN
        1310/python
但我做错了什么? 我唯一需要更改的参考点是trytond.conf文件,对吗

这是:

#This file is part of Tryton.  The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
[options]

# Activate the json-rpc protocol
jsonrpc = *:8000
#ssl_jsonrpc = False

# This is the hostname used when generating tryton URI
#hostname_jsonrpc =

# Configure the path of json-rpc data
#jsondata_path = /var/www/localhost/tryton

# Activate the xml-rpc protocol
#xmlrpc = *:8069
#ssl_xmlrpc = False

# Activate the webdav protocol
#webdav = *:8080
#ssl_webdav = False

# This is the hostname used when generating WebDAV URI
#hostname_webdav =

# Configure the database type
# allowed values are postgresql, sqlite, mysql
db_type = postgresql

# Configure the database connection
#    # Note: Only databases owned by db_user will be displayed in the connection dialog
#    # of the Tryton client. db_user must have create permission for new databases
#    # to be able to use automatic database creation with the Tryton client.
db_host = localhost
db_port = 5432
db_user = postgres
db_password = postgres_password
db_minconn = 1
db_maxconn = 64

# Configure the postgresql path for the executable
#pg_path = None

# Configure the Tryton server password
admin_passwd = admin_password

# Configure the path of the files for the pid and the logs
#pidfile = False
#logfile = False

#privatekey = server.pem
#certificate = server.pem

# Configure the SMTP connection
#smtp_server = localhost
#smtp_port = 25
#smtp_ssl = False
#smtp_tls = False
#smtp_password = False
#smtp_user = False
#smtp_default_from_email = False

# Configure the path to store attachments and sqlite database
data_path = /var/lib/tryton

# Allow to run more than one instance of trytond
#multi_server = False

# Configure the session timeout (inactivity of the client in sec)
#session_timeout = 600

# Enable auto-reload of modules if changed
#auto_reload = True

# Prevent database listing
#prevent_dblist = False

# Enable cron
# cron = True

# unoconv connection
#unoconv = pipe,name=trytond;urp;StarOffice.ComponentContext

# Number of retries on database operational error
# retry = 5

# Default language code
# language = en_US

# Timezone of the server
timezone = 0

正如我所想,配置文件是完全正确的

整个问题只是Tryton服务器在更改后没有正确读取它,因为它的重新启动有问题

Unity desktop报告说它需要“重新启动以安装更新”(我从Windows不知道吗?)

重新启动系统之前,重新启动Tryton服务器只会产生:

sudo /etc/init.d/tryton—server restart
* Restarting Tryton Application Platform trytond
start—stop—daemon: warning: failed to kill 18175: No such process    
[ 0K ]
我认为[OK]意味着服务器已经重启了。 但是,没有

系统重新启动后,我收到了正确的消息:

sudo /etc/init.d/tryton—server restart
* Restarting Tryton Application Platform trytond
[ 0K ]
现在netstat输出正确,客户端连接成功:

# netstat -tupan | grep 8000
tcp6       0      0 :::8000                 :::*                    LISTEN
1792/python
试跑3 我也有同样的问题,这实际上是我麻烦的原因:

但是,我的trytond.conf文件看起来是正确的,具有

(至少对于最新版本,3.4至3.8)如下所示:

[jsonrpc]
listen = *:8000
作为旁注,使用
--verbose
标志运行
trytond
,可以在控制台中进行调试(或者您也可以使用
--logconf logconf
进行播放,输入
trytond

试运行5 遇到
网络错误![Errno 111]连接被拒绝
升级后再次出现问题。对于Trytond 5.8.5,语法似乎再次更改,如下所示:

[web]
listen = *:8000
[jsonrpc]
listen = *:8000
[web]
listen = *:8000