123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- export GOPATH=/Users/lijian/go
- LEVEL="error"
- 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 192.168.0.224 -dbname iot-hub -dbport 3306 -dbuser root -dbpass zJv4DwFL6G2MgSvP@ -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 debug -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" &
|