黑樱桃

2024-09-25 16:25:12 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在大学里开发一个物联网项目。我有一台旧的linux pc,用作服务器。我在官方指南中安装了noip,它可以正常工作。现在,我试图将我的网页从本地网络公开(所有内容都在本地工作),但我有以下错误:

pcelementary@pcelementary-X51L:~/IoT$ python3 webpage.py
[16/Apr/2020:14:47:06] ENGINE Bus STARTING
CherryPy Checker:
The config entry 'tool.session.on' is invalid, because the 'tool' config namespace is unknown.
section: [/]

[16/Apr/2020:14:47:06] ENGINE Started monitor thread 'Autoreloader'.
[16/Apr/2020:14:47:06] ENGINE Serving on http://192.168.1.184:8080
[16/Apr/2020:14:47:06] ENGINE Bus STARTED
Connected to mqtt.eclipse.org with result code: 0
[16/Apr/2020:14:48:12] ENGINE Restarting because /home/pcelementary/IoT/webpage.py changed.
[16/Apr/2020:14:48:12] ENGINE Stopped thread 'Autoreloader'.
[16/Apr/2020:14:48:12] ENGINE Bus STOPPING
[16/Apr/2020:14:48:12] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.1.184', 8080)) shut down
[16/Apr/2020:14:48:12] ENGINE Bus STOPPED
[16/Apr/2020:14:48:12] ENGINE Bus EXITING
[16/Apr/2020:14:48:12] ENGINE Bus EXITED
[16/Apr/2020:14:48:12] ENGINE Waiting for child threads to terminate...
[16/Apr/2020:14:48:12] ENGINE Re-spawning python3 webpage.py
[16/Apr/2020:14:48:13] ENGINE Bus STARTING
CherryPy Checker:
The config entry 'tool.session.on' is invalid, because the 'tool' config namespace is unknown.
section: [/]

[16/Apr/2020:14:48:13] ENGINE Started monitor thread 'Autoreloader'.
[16/Apr/2020:14:48:13] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
  File "/home/pcelementary/.local/lib/python3.6/site-packages/cherrypy/process/servers.py", line 225, in _start_http_thread
    self.httpserver.start()
  File "/home/pcelementary/.local/lib/python3.6/site-packages/cheroot/server.py", line 1801, in start
    self.prepare()
  File "/home/pcelementary/.local/lib/python3.6/site-packages/cheroot/server.py", line 1760, in prepare
    raise socket.error(msg)
OSError: No socket could be created -- (('79.35.205.107', 8080): [Errno 99] Cannot assign requested address)

[16/Apr/2020:14:48:13] ENGINE Bus STOPPING
[16/Apr/2020:14:48:13] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('79.35.205.107', 8080)) already shut down
[16/Apr/2020:14:48:13] ENGINE Stopped thread 'Autoreloader'.
[16/Apr/2020:14:48:13] ENGINE Bus STOPPED
[16/Apr/2020:14:48:13] ENGINE Bus EXITING
[16/Apr/2020:14:48:13] ENGINE Bus EXITED

我只将本地ip与我在无ip页面中找到的ip进行了切换,就像使用ssh协议一样。我不知道是什么问题


Tags: inpyconfighomeserverisontool