- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在从 Centos 服务器部署 django 应用程序。当我做 python3.6 manage.py runserver 8000
命令它启动一个开发服务器没问题。我无法从本地计算机访问此页面进行测试。
所以我采取的步骤是:我通过执行 ssh <user>@url.com
SSH 进入服务器然后使用上述命令运行开发服务器。然后,我在笔记本电脑上的浏览器中输入 url.com:8000,然后会出现 Unable to connect
在运行我的 apache 服务器进行生产时,我也遇到了这个问题。我将服务器放在服务器上我没有问题,但我无法访问该网页。
我知道这是非常少的信息,但这听起来像是 url.com 的服务器端问题吗?我应该与管理员联系,还是这可能是我的事情?
也许我需要在我的 django 应用程序中配置我的 settings.py 的地址?
最佳答案
您可能想要运行它,以便它监听任何接口(interface)。来自 documentation :
Note that the default IP address, 127.0.0.1, is not accessible from other machines on your network. To make your development server viewable to other machines on the network, use its own IP address (e.g. 192.168.2.1) or 0.0.0.0 or :: (with IPv6 enabled).
python3.6 manage.py runserver 0.0.0.0:8000
DO NOT USE THIS SERVER IN A PRODUCTION SETTING. It has not gone through security audits or performance tests. (And that’s how it’s gonna stay. We’re in the business of making Web frameworks, not Web servers, so improving this server to be able to handle a production environment is outside the scope of Django.)
关于django - 无法访问我通过 ssh 连接到的服务器上的开发服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55052562/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!