First, get a copy (available at most libraries or online booksellers or major bookstores) of Jean Donaldson's "The Culture Clash" and read it and learn!
You cannot "discipline" a dog if he doesn't know what he is SUPPOSED to do. Right now your dog gets excited around other things which move or other people and dogs. His adrenal glands are producing overtime and he needs to be guided into proper behavior at this point, not yelled at or "disciplined" as that will only activate his adrenals to produce more and he becomes even MORE hyper.
You MUST get your dog into some kind of training, either a class or at home. But you cannot expect your dog to stop lunging and barking and pulling and so forth if you can't get him to do what you need him to do on command. Positive reinforcement and reward-based training are the ONLY recommended ways to achieve this.
If you haven't trained your dog to, for example, walk with you properly on leash on command, the first bit of excitement will cause him to lunge and bolt and pull. He is relying on instinct, not his learned behaviors. So, when you walk, you must TRAIN the dog to walk properly admid ALL distractions, in order to avoid that. That involves training the dog to walk properly from the outset, whether or not he does so naturally when alone or not. The reinforcement of the training will only enhance his abilities to control himself and obey you regardless of the distraction.
Same with people. Of course, he's excited and wants attention and to play, etc. when he greets new people. Its natural. Again, the adrenals are worked up to a frenzy. The dog needs at least 1 full minute of calm before his adrenals will stop producing and he can calm down. Therefore, it is essential that you have basic control over your dog's behavior so you can put him in a calming position (sit or down) and have him remain there, calmly until released. Then when you meet strangers you have something to tell the dog TO DO, rather than yell at him not to jump on people. He is further pumped by your yelling or discipline and could eventually turn on you or strangers in an attempt to get his own way because he thinks he's in control. In order to gain control of the dog, you must train him in all the basic control behaviors (sit, recall, down, stay and heel). Then when he gets excited, you can ask the dog to down/stay for a minute, until he calms and then release him and show him, guide him into standing properly and allowing himself to be petted calmly and without over excitement.
Don't expect your dog to just "get it" or grow into it. It will not happen. The problem will only get worse and worse and eventually turn into unwanted and often dangerous behaviors because we feel our dogs don't need training. If left untrained, they become extremely strong willed and will stop at nothing to get what they want, including biting and hurting their owners. That is why it is essential to let the dog know that he is NOT in control. And training is one of the most important aspects to this.
Get enrolled in a positive reinforcment, reward based training class ASAP. There are no other magic pills or quick fixes and the dog won't grow out of it either without proper training.
Good luck.