[求搭救]python manage.py runserver 出现错误

2015-12-02 22:57:18 +08:00
 kang000feng
在 SSH 终端执行 python manage.py runserver ,出现
Performing system checks...

System check identified no issues (0 silenced).
October 04, 2015 - 20:56:45
Django version 1.8.2, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

Error: You don't have permission to access that port.

部署在 openshift paas 平台上,是否需要绑定?如何做端口绑定?谢谢 !
3930 次点击
所在节点    Django
5 条回复
bingwenshi
2015-12-02 23:31:16 +08:00
> Error: You don't have permission to access that port.

runserver 默認的端口是 80 ,非 root 用戶是沒權限使用 1024 以下的端口的,所以提示權限不足
kang000feng
2015-12-02 23:37:27 +08:00
@bingwenshi python manage.py runserver 8080 还是一样
Performing system checks...
System check identified no issues (0 silenced).
October 04, 2015 - 20:56:45
Django version 1.8.2, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

Error: You don't have permission to access that port.
kang000feng
2015-12-02 23:39:22 +08:00
@bingwenshi python manage.py runserver 0.0.0.0:8000 也是同样报错
sleeperqp
2015-12-03 00:16:31 +08:00
我觉得更关键的地方在你部署在 paas
不清楚具体是怎么样的机制 你可以从平台入手看看是不是平台的限制
repus911
2015-12-03 09:56:07 +08:00
没权限 sudo 呀

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/240710

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX