fix default redis port in examplepp.

Add publish command.