python - 无法连接到测试服务器。“ERR_CONNECTION_REFUSED”
问题描述
我是 Django 新手,我正在尝试通过python3 manage.py runserver
. 我得到了一切顺利的信息:
Performing system checks...
System check identified no issues (0 silenced).
You have 15 unapplied migration(s). Your project may not work properly
until you apply the migrations for app(s): admin, auth, contenttypes,
sessions.
Run 'python manage.py migrate' to apply them.
January 28, 2019 - 19:15:50
Django version 2.1.5, using settings 'mytestsite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
仍然当我尝试http://127.0.0.1:8000/
从 Chrome 浏览器连接时,我得到了网站无法访问的信息。我在 Ubuntu 上的防火墙配置:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp (OpenSSH) ALLOW IN Anywhere
8000 ALLOW IN Anywhere
Anywhere ALLOW IN 127.0.0.1
22/tcp (OpenSSH (v6)) ALLOW IN Anywhere (v6)
8000 (v6) ALLOW IN Anywhere (v6)
还有什么可能是错的?这是我的第一个设置。感谢帮助。
解决方案
推荐阅读
- excel - 如何找到最大数据的行数并设置为0
- apache-kafka - 对同一个kafka主题产生一批事件相互覆盖
- php - PHP - 如何获取受保护的属性
- javascript - 如何从数组中打印数字?
- java - Spring 我可以使用 multipart/form-data 发布参数数组吗
- python - 与python中的else块混淆
- postgresql - 如何在 postgres 脚本中声明变量?
- sql - 如何在postgreSQL函数中从字符串变量中修剪双引号
- java - 如何在 for 循环中为 MenuItem 设置文本?
- c# - 我需要关于这个 lerping 问题的帮助。我正在尝试制作平台游戏