Thanks for your patience.
Now the main problem with me is how to create validator with designated pubkey, or, how to using the command you gived in local single-node.
$ cd $HOME
$ gaiad init --chain-id testing --moniker testing
$ gaiacli keys add validator
$ gaiad add-genesis-account $(gaiacli keys show validator -a) 1000STAKE,1000validatorToken
$ gaiad gentx --name validator
$ gaiad collect-gentxs
Then error “ERROR: ABCIQuery: Post http://localhost:26657: dial tcp 127.0.0.1:26657: connect: connection refused” occured when execute
$ gaiacli tx stake create-validator --pubkey=cosmosvalconspub1zcjduepqe9jexppzpyvg86unlu8d39xqa3xwwtn6allu5zdsp33kqc8tdnus7rmf78 […]
But if execute “gaiad start” first, error “ERROR: Msg 0 failed: {“codespace”:“STAKE”,“code”:101,“message”:“validator already exist for this operator address, must use new validator operator address”}” occured when execute
$ gaiacli tx stake create-validator --pubkey=cosmosvalconspub1zcjduepqe9jexppzpyvg86unlu8d39xqa3xwwtn6allu5zdsp33kqc8tdnus7rmf78 […]
Which of the above commands create validator by using my operator address? What is the right time to create my validator with designated pubkey?
It will be better if you can show me the shell command.
Thanks for your patience again and sorry for my stupidity