1234567891011121314151617181920 |
- export GOPATH=/Users/lijian/go
- LEVEL="debug"
- sudo killall -9 httpaccess registry apiprovider devicemanager controller mqttaccess knowoapi fileaccess coapaccess
- # start services
- #$GOPATH/bin/httpaccess -etcd http://localhost:2379 -httphost internal:443 -loglevel debug -usehttps -keyfile $GOPATH/src/github.com/PandoCloud/pando-cloud/pkg/server/testdata/key.pem -cafile $GOPATH/src/github.com/PandoCloud/pando-cloud/pkg/server/testdata/cert.pem &
- $GOPATH/bin/httpaccess -etcd http://127.0.0.1:2379 -httphost internal:8088 -loglevel $LEVEL &
- $GOPATH/bin/registry -etcd http://127.0.0.1:2379 -rpchost internal:20034 -aeskey ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP -dbhost 106.14.63.46 -dbname iot-hub -dbport 3306 -dbuser root -dbpass Lijian405! -loglevel $LEVEL &
- $GOPATH/bin/apiprovider -etcd http://127.0.0.1:2379 -loglevel $LEVEL -httphost internal:8888 &
- $GOPATH/bin/devicemanager -etcd http://127.0.0.1:2379 -loglevel $LEVEL -rpchost internal:20033 &
- $GOPATH/bin/controller -etcd http://127.0.0.1:2379 -loglevel $LEVEL -rpchost internal:20032 &
- #$GOPATH/bin/mqttaccess -etcd http://localhost:2379 -loglevel debug -rpchost localhost:20030 -tcphost internal:1883 -usetls -keyfile $GOPATH/src/github.com/PandoCloud/pando-cloud/pkg/server/testdata/key.pem -cafile $GOPATH/src/github.com/PandoCloud/pando-cloud/pkg/server/testdata/cert.pem &
- $GOPATH/bin/mqttaccess -etcd http://127.0.0.1:2379 -loglevel $LEVEL -rpchost internal:20030 -tcphost internal:1883 &
- $GOPATH/bin/knowoapi -etcd http://127.0.0.1:2379 -loglevel $LEVEL -httphost internal:8889 -dbhost 106.14.63.46 -dbname iot-hub -dbport 3306 -dbuser root -dbpass Lijian405! -aeskey ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP &
- $GOPATH/bin/fileaccess -etcd http://127.0.0.1:2379 -loglevel $LEVEL -rpchost internal:20035 -httphost internal:9000 &
- $GOPATH/bin/coapaccess -etcd http://127.0.0.1:2379 -loglevel $LEVEL -udphost internal:56883 &
- exit 0
- # etcd --listen-peer-urls="http://0.0.0.0:2380" --listen-client-urls="http://0.0.0.0:2379" -advertise-client-urls="http://0.0.0.0:2379" &
|