Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LINUX 安裝後配置頁空白 #236

Open
GGOOHAPPY opened this issue Oct 21, 2019 · 8 comments
Open

LINUX 安裝後配置頁空白 #236

GGOOHAPPY opened this issue Oct 21, 2019 · 8 comments

Comments

@GGOOHAPPY
Copy link

我LINUX 安裝後配置頁空白 , RUN "python vulscan/vulscan.py" 有以下的問題:

'NoneType' object has no attribute 'getitem'
Traceback (most recent call last):
File "vulscan/vulscan.py", line 355, in
PASSWORD_DIC, THREAD_COUNT, TIMEOUT, WHITE_LIST = get_config()
TypeError: 'NoneType' object is not iterable

應該是跟舊帖問題一樣, 但未知哪裡有改FULL PATH
#111

@ywolf
Copy link
Collaborator

ywolf commented Oct 22, 2019

应该是 数据库初始化那个步骤出问题导致

@GGOOHAPPY
Copy link
Author

mongorestore -h 127.0.0.1 --port 27017 -d xunfeng .
就來這句嗎? 我已經有打了這句, 有方法CHECK 是什麼問題嗎?

@ywolf
Copy link
Collaborator

ywolf commented Oct 22, 2019

执行结果是否有异常
可以连接 mongo 看看表结构和基础配置信息是否已经成功导入

@GGOOHAPPY
Copy link
Author

是這樣的,

use xunfeng
switched to db xunfeng
db.stats()
{
"db" : "xunfeng",
"collections" : 1,
"objects" : 151,
"avgObjSize" : 371.3576158940397,
"dataSize" : 56075,
"storageSize" : 36864,
"numExtents" : 0,
"indexes" : 1,
"indexSize" : 16384,
"ok" : 1
}

@ywolf
Copy link
Collaborator

ywolf commented Oct 22, 2019

"collections" : 1,
应该是没有导入成功把 重新操作初始化数据库这个流程

@GGOOHAPPY
Copy link
Author

cd /root/mongodb-linux-x86_64-3.4.0/bin

pwd

/root/mongodb-linux-x86_64-3.4.0/bin

mongorestore -h 127.0.0.1 --port 27017 -d xunfeng .

2019-10-22T19:37:44.767+0800 the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead
2019-10-22T19:37:44.767+0800 building a list of collections to restore from . dir
2019-10-22T19:37:44.768+0800 don't know what to do with file "bsondump", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongo", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongod", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongodump", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongoexport", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongofiles", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongoimport", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongooplog", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongoperf", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongoreplay", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongorestore", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongos", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongostat", skipping...
2019-10-22T19:37:44.768+0800 don't know what to do with file "mongotop", skipping...
2019-10-22T19:37:44.768+0800 done

i tried to do the above , and see again the db.stats() , it still only has one collection .
my mongo db version is now 3.4 .

@ywolf
Copy link
Collaborator

ywolf commented Oct 23, 2019

先cd 到源码的db目录 再执行导入命令

@GGOOHAPPY
Copy link
Author

thanks , it works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants