How to stop a dog from jumping on people

How to stop a dog from jumping on people: