Titan is a redis protocol layer running on TiKV, so you should deploy tikv first.
Following this reference to deploy tikv: https://pingcap.com/docs/op-guide/ansible-deployment/
go get github.com/distributedio/titan
cd $GOPATH/src/github.com/distributedio/titan
make
Edit conf/titan.toml and set the pd-addrs
pd-addrs="tikv://your-pd-addrs:port"
First, set auth value in the 'server' section of conf/titan.toml
auth = "YOUR_SERVER_KEY"
Then use ./tools/token/token to generate a client token.
cd $GOPATH/src/github.com/distributedio/titan/tools/token
go build main.go -o titan-gen-client-token
./titan-gen-client-token -key YOUR_SERVER_KEY -namespace bbs
Then you'll get the token for client auth, for example: bbs-1543999615-1-7a50221d92e69d63e1b443
cd $GOPATH/src/github.com/distributedio/titan
./titan
redis-cli -p 7369
If Multi-tenancy is enabled, use server-generated token to auth:
redis-cli -p 7369 -a bbs-1543999615-1-7a50221d92e69d63e1b443