mac下安裝PHP mongoldb

個人環境
PHP7
操做系統 macphp

開始用 git

install php70-mongodbgithub

一直報錯 :dyld: lazy symbol binding failed: Symbol not found: _clock_gettimemongodb

最後解決api

brew reinstall php70-mongodb --build-from-sourceruby

curl -XPUT localhost:9200/_cluster/settings -d '{
    "transient" : {
        "cluster.routing.allocation.disk.watermark.low" : 0.97
    }
}'
 curl -XPOST http://localhost:9200/logstash-2017.12.12/teacher_api_log -d'{"name":"tom","age":21,"info":"tom"}'

curl -XPUT localhost:9200/_cluster/settings -d '{
    "transient" : {
        "cluster.routing.allocation.disk.threshold_enabled" : false
    }
}'

 

 

brew 安裝:bash

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"php7

相關文章
相關標籤/搜索