Скрипт:
from bottle import run, route, get
@get('/')
def index():
return "Hello, world!"
run(host='0.0.0.0', port=36000)
Ошибка:
> python3 x.py
Bottle v0.12.7 server starting up (using WSGIRefServer())...
Listening on http://0.0.0.0:36000/
Hit Ctrl-C to quit.
Traceback (most recent call last):
File "x.py", line 8, in <module>
run(host='0.0.0.0', port=36000)
File "/var/lib/openshift/549c027e5000077/python/virtenv/venv/lib/python3.3/site-packages/bottle.py", line 3114, in run
server.run(app)
File "/var/lib/openshift/549c027e5000077/python/virtenv/venv/lib/python3.3/site-packages/bottle.py", line 2768, in run
srv = make_server(self.host, self.port, app, server_cls, handler_cls)
File "/opt/rh/python33/root/usr/lib64/python3.3/wsgiref/simple_server.py", line 146, in make_server
server = server_class((host, port), handler_class)
File "/opt/rh/python33/root/usr/lib64/python3.3/socketserver.py", line 430, in __init__
self.server_bind()
File "/opt/rh/python33/root/usr/lib64/python3.3/wsgiref/simple_server.py", line 50, in server_bind
HTTPServer.server_bind(self)
File "/opt/rh/python33/root/usr/lib64/python3.3/http/server.py", line 135, in server_bind
socketserver.TCPServer.server_bind(self)
File "/opt/rh/python33/root/usr/lib64/python3.3/socketserver.py", line 441, in server_bind
self.socket.bind(self.server_address)
PermissionError: [Errno 13] Permission denied
Пробовал разные порты, в процессах только ssh — не помогло. Как решить данную проблему?