0
我試圖讓python bottle application運行,但由於某種原因它失敗。我在cent os 7.2版本上使用0.13和python 2.7。Bottle python程序在開發環境中運行,但不在實時環境中運行
相同的程序運行在具有centos 6.7而不是live環境的dev環境中。我得到以下堆棧跟蹤:
File "helloworld.py", line 7, in <module>run(host='localhost', port=8080)
File "/bottle.py", line 3127, in run server.run(app) File "/bottle.py", line 2781, in run
srv = make_server(self.host, self.port, app, server_cls, handler_cls)
File "/usr/lib64/python2.7/wsgiref/simple_server.py", line 144, in make_server
server = server_class((host, port), handler_class)
File "/usr/lib64/python2.7/SocketServer.py", line 420, in _init_self.server_activate()
File "/usr/lib64/python2.7/SocketServer.py", line 439, in server_activate
self.socket.listen(self.request_queue_size)
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)socket.error: [Errno 98] Address already in use
任何幫助將不勝感激。
也有一些是綁定到端口8080已。 –