实现服务器上的tail和top命令的实时展示,将结果实时展示在web上
tail在页面上限制了显示长度,自动滚动显示最新数据
tail页面效果如下
top页面效果如下
实时监控日志文件并输出到web上,在web上实时显示top、tail -f 等的效果
请问,日志文件只打印一行,页面上重复打印多行,这是什么问题呢?如下:
2021-04-23 12:41:15,106 - video_process_main_v3.py[line:63] - INFO: processing: LJ03424_AXIS_1615341358971.mp4 video to image complete,process time:2982.891138076782
2021-04-23 12:41:15,106 - video_process_main_v3.py[line:63] - INFO: processing: LJ03424_AXIS_1615341358971.mp4 video to image complete,process time:2982.891138076782
2021-04-23 12:41:15,106 - video_process_main_v3.py[line:63] - INFO: processing: LJ03424_AXIS_1615341358971.mp4 video to image complete,process time:2982.891138076782
2021-04-23 12:41:15,106 - video_process_main_v3.py[line:63] - INFO: processing: LJ03424_AXIS_1615341358971.mp4 video to image complete,process time:2982.891138076782
2021-04-23 12:41:15,106 - video_process_main_v3.py[line:63] - INFO: processing: LJ03424_AXIS_1615341358971.mp4 video to image complete,process time:2982.891138076782
2021-04-23 12:41:15,106 - video_process_main_v3.py[line:63] - INFO: processing: LJ03424_AXIS_1615341358971.mp4 video to image complete,process time:2982.891138076782
2021-04-23 12:41:15,106 - video_process_main_v3.py[line:63] - INFO: processing: LJ03424_AXIS_1615341358971.mp4 video to image complete,process time:2982.891138076782
2021-04-23 12:41:15,839 - video_process_main_v3.py[line:63] - INFO: LJ03424_AXIS_1615341358971 image process start
2021-04-23 12:41:15,839 - video_process_main_v3.py[line:63] - INFO: LJ03424_AXIS_1615341358971 image process start
2021-04-23 12:41:15,839 - video_process_main_v3.py[line:63] - INFO: LJ03424_AXIS_1615341358971 image process start
2021-04-23 12:41:15,839 - video_process_main_v3.py[line:63] - INFO: LJ03424_AXIS_1615341358971 image process start
2021-04-23 12:41:15,839 - video_process_main_v3.py[line:63] - INFO: LJ03424_AXIS_1615341358971 image process start
2021-04-23 12:41:15,839 - video_process_main_v3.py[line:63] - INFO: LJ03424_AXIS_1615341358971 image process start
2021-04-23 12:41:15,839 - video_process_main_v3.py[line:63] - INFO: LJ03424_AXIS_1615341358971 image process start
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.