如何远程 运行 django?
How to run django remotely?
我正在 运行宁 Yang Explorer
在我的远程 Ubuntu 服务器上。
我运行它使用存储库中的start.sh
。
Activating virtualenv ..
Starting YangExplorer server ..
Use http://localhost:8088/static/YangExplorer.html
Performing system checks...
System check identified no issues (0 silenced).
January 31, 2019 - 08:35:31
Django version 1.8.3, using settings 'server.settings'
Starting development server at http://localhost:8088/
我想使用我的机器在我的浏览器中打开应用程序。服务器的 IP 地址是 152.66.xx.xx
运行 ip地址(共享服务器)
启动服务器:
使用if-config确定
在 YangExplorer.html
中添加 ip-address/port
在以下行之后:
cd <install-root>/yang-explorer/server/static
vi YangExplorer.html
var flashvars = {};
flashvars.host = '<ip-address>';
flashvars.port = '8088';
保存并退出
在启动脚本中更新 ip 地址
cd <install-root>/yang-explorer
vi start.sh
(update HOST variable with <ip-address>)
保存并退出
./start.sh
注意:如果您在安装过程中没有使用 virtualenv,则可能需要 sudo。
启动资源管理器:
http://<ip-address>:8088/static/YangExplorer.html
我正在 运行宁 Yang Explorer
在我的远程 Ubuntu 服务器上。
我运行它使用存储库中的start.sh
。
Activating virtualenv ..
Starting YangExplorer server ..
Use http://localhost:8088/static/YangExplorer.html
Performing system checks...
System check identified no issues (0 silenced).
January 31, 2019 - 08:35:31
Django version 1.8.3, using settings 'server.settings'
Starting development server at http://localhost:8088/
我想使用我的机器在我的浏览器中打开应用程序。服务器的 IP 地址是 152.66.xx.xx
运行 ip地址(共享服务器) 启动服务器:
使用if-config确定
在 YangExplorer.html
中添加 ip-address/port
在以下行之后:
cd <install-root>/yang-explorer/server/static
vi YangExplorer.html
var flashvars = {};
flashvars.host = '<ip-address>';
flashvars.port = '8088';
保存并退出
在启动脚本中更新 ip 地址
cd <install-root>/yang-explorer
vi start.sh
(update HOST variable with <ip-address>)
保存并退出
./start.sh
注意:如果您在安装过程中没有使用 virtualenv,则可能需要 sudo。
启动资源管理器:
http://<ip-address>:8088/static/YangExplorer.html