fabfile.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:Young 作者: shiyanhui 项目源码 文件源码
def start_service():
    path = os.path.join(os.path.dirname(__file__), "workspace")
    if not os.path.exists(path):
        os.mkdir(path)

    with cd(path):
        try:
            local("ejabberdctl start")
        except:
            pass

        local("service elasticsearch start")
        local("service mongod start")
        local("nohup nsqd -data-path=%s &" % path)

    local("/bin/bash -l -c 'source envs/mongo/bin/activate && nohup "
          "mongo-connector -m localhost:27017 -t localhost:9200 -d "
          "elastic2_doc_manager --continue-on-error &'")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号