Skip to content
/ wdpy Public

websocket+Django+python+paramiko实现web页面执行命令并实时输出

Notifications You must be signed in to change notification settings

py3study/wdpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
xiang.xiao
Jan 24, 2019
ac6d492 · Jan 24, 2019

History

4 Commits
Jan 20, 2019
Jan 20, 2019
Jan 20, 2019
Jan 24, 2019
Jan 20, 2019
Jan 20, 2019
Jan 20, 2019
Jan 20, 2019
Jan 20, 2019

Repository files navigation

说明

websocket+Django+python+paramiko实现web页面执行命令并实时输出

环境依赖

Project Status Description
python 3.5.4 在这个版本以及以上都课可以
django 2.1.4 大于2.0,小于2.1.5
paramiko 2.4.2

注意事项

django版本不能是2.1.5,使用websocket,谷歌浏览器会报错

WebSocket connection to 'ws://127.0.01:8000/echo_once/' failed: Error during WebSocket handshake: Unexpected response code: 400

安装依赖

pip3 install -r requirements.txt

或者

pip3 install paramiko dwebsocket django==2.1.4

运行方式

使用Pycharm直接运行即可

或者使用命令 python manage.py runserver

效果图

执行脚本

Image text

安装软件

Image text

Copyright (c) 2018-present, xiao You

About

websocket+Django+python+paramiko实现web页面执行命令并实时输出

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published