美文网首页
Problems and solutions when inst

Problems and solutions when inst

作者: 某山 | 来源:发表于2018-11-05 15:44 被阅读0次

    WTF! I can not use chinese in Vmware! so just wrote down this note in English.
    Here are the Golds:

    First problem:

    I found the service mongod can't start when the scripts finished the installation of mongo.

    Solution:

    I'm very sure that i use ./install.sh at the privilige of root, so i try to use sudo "service mongod start", it did work, so i change the script of installation of mongodb, the path of this script is in /opt/mhn/scripts, you can add sudo before "servie mongod restart"

    Second problem:

    when scripts went to "apt-get install supervisor", the log show that we missed some packages:name process_or_group_name

    Solution:

    I use easy_install to finish the installation of it

    Third problem:

    when i run the command "supervisorctl status" to check if MHN platform is running correctly, and the result is:

    honeymap FATAL and mhn-celery-worker FATAL
    

    so i found the solution on github: https://github.com/threatstream/mhn/wiki/MHN-Troubleshooting-Guide

    1)solution of mhn-celery-worker FATAL

    cd /var/log/mhn/
    sudo chown www-data mhn.log
    sudo supervisorctl start mhn-celery-worker

    2)solutions of honeymap

    I use my shadowsocks, but in vmware, It still can't connect to google, so i try this solution:
    edit this file: /opt/mhn/server/config.py
    Change this variable to the correct URL:

    HONEYMAP_URL = 'http://10.0.0.1:3000'
    

    Then restart mhn-uwsgi:

    sudo supervisorctl restart mhn-uwsgi
    

    (if only restart mhn-uwsgi may not work, i restart all again and now it run in the right way)

    相关文章

      网友评论

          本文标题:Problems and solutions when inst

          本文链接:https://www.haomeiwen.com/subject/ocpsxqtx.html