Comments (2)
看了client的代码,里面有注册node的代码
def node_register(): first_blood = True while 1: if first_blood: dd = { "last_time": time.time(), "tasks": 0, "running": 0, "finished": 0 } redis_con.hmset(NODE_NAME, dd) first_blood = False else: redis_con.hset(NODE_NAME, "last_time", time.time()) time.sleep(50 * 5)
根据源码,也就是node会访问redis并写入自己node的相关信息.
然后我查阅了我的redis,也有记录。但是web为啥没有显示? 需要更新什么?
PS。
还有整个项目就感觉是个半成品,大部分的配置居然写死在代码里。我只是想配置一下全端口扫描,结果又是单独启动,也要单独配置IP,非常不方便。而且项目一直没更新,作者是打算不维护了嘛?
from w12scan-client.
翻了源码。。。写得太死板了吧。。
# node monitor
nodenames = redis_con.keys("w12_node_*")
nodes = []
for nodename in nodenames:
dd = redis_con.hgetall(nodename)
tem_dict = {}
tem_dict["nodename"] = lstrsub(nodename, "w12_node_")
算是解决这个问题。。。另外任务是不是应该也有一个列表,提供在线编辑?
from w12scan-client.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from w12scan-client.