Browse Source

更新 'pyproject/SSHManager/README.md'

heavensend 6 years ago
parent
commit
0b5cc16e32
1 changed files with 12 additions and 0 deletions
  1. 12 0
      pyproject/SSHManager/README.md

+ 12 - 0
pyproject/SSHManager/README.md

@@ -47,6 +47,18 @@ class Config():
     users = [ 'mYPeZZG91eXVedTrv2ONvcHM',
                  ]
 ```
+
+**初始化数据库**
+```sql
+CREATE TABLE `token_info` (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `host` varchar(15) NOT NULL,
+  `time` varchar(45) NOT NULL,
+  `rd_list` varchar(100) NOT NULL,
+  PRIMARY KEY (`id`,`host`)
+) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
+
+```
 - **config.py模块中,参数均需由local_generater/word_generater.py加密生成,加密模块这里只提供简单的生成和解释部分,一般需要整合到自有的管理平台中**
 - **在local_generater/word_generater.py中,最后注释了两行打印语句,其中encodestr函数为加密,decodestr函数为解密**
 - **config.py模块中,users可以指定多个,可以实现多用户的密码定时修改**