Use a soft, happy voice to encourage your dog to say "hello" to the person. Ask the person to remain relaxed and still and allow the dog to sniff them. If your dog is really excited and starts jumping on anyone, ask your dog to 'sit' before being petted, or hold onto the leash so your dog cannot reach the person