@bergus
2016-03-21T20:52:47.000000Z
字数 1539
阅读 1847
consul
nohup consul agent -dev >> consul.log &
curl -X PUT -d '{"Name":"user","Address":"127.0.0.1","Port":13001,"tags":["user prod-user.prod 13001"]}' -i http://localhost:8500/v1/agent/service/register
curl -X PUT -d '{"Name":"diary", "Port": 13006, "Address":"127.0.0.1", "tags":["diary prod-diary.prod 13006"] }' -i http://localhost:8500/v1/agent/service/register
curl -X PUT -d '{"Name":"mediastore", "Port": 13004, "Address":"127.0.0.1", "tags":["mediastore prod-mediastore.prod 13004"] }' -i http://localhost:8500/v1/agent/service/register
curl -X PUT -d '{"Name":"other", "Port": 13003, "Address":"127.0.0.1", "tags":["other prod-other.prod 13003"] }' -i http://localhost:8500/v1/agent/service/register
curl -X PUT -d '{"Name":"verification", "Port": 13002, "Address":"127.0.0.1", "tags":["verification prod-verification.prod 13002"] }' -i http://localhost:8500/v1/agent/service/register
curl -X PUT -d '{"Name":"activity", "Port": 13005, "Address":"127.0.0.1", "tags":["verification prod-verification.prod 13005"] }' -i http://localhost:8500/v1/agent/service/register
nohup /app/other.exe -dh prod-postgres.prod -du postgres -dpwd wothing -dn wothing >> other.log &
cat other.log
nohup /app/diary.exe -dh prod-postgres.prod -du postgres -dpwd wothing -dn wothing >> diary.log &
nohup /app/mediastore.exe -p 13004 >> mediastore.log &
nohup /app/user.exe -dh prod-postgres.prod -du postgres -dpwd wothing -dn wothing >> user.log &
ls
nohup /app/verification.exe -rh prod-redis.prod >> verification.log &
nohup /app/activity.exe -dh prod-postgres.prod -du postgres -dpwd wothing -dn wothing >> activity.log &
nohup /app/gw.exe >> gw.log &