It depends on several factors...
- Are you using standard 30" high kitchen wall cabinets over standard base cabinet with 18" between, then 7'-0" is about right.
- If you have 8' ceiling and don't want 12" gap above the cabinets, then go with taller upper cabinets and raise them to 8'
- If you have power tolls below the wall cabinets, measure the clearance you need to open the doors and mount accordingly.
- If you have base cabinets with power tools - grinder, lathe, miter saw, etc - then upper cabinets may need to be mounted higher to have adequate clearance to use the tools (and change blades, belts, etc.)
There are many things you need to consider for your final layout. Wall cabinets are usually fastened thru the top cabinet frame into the wall. They can be fastened at the bottom as well, but cabinets come with a 1x across the inside top to mount while the bottom only has the 1/4" cabinet back to screw through. And usually that is a fiberboard and not structural.
For prepping your walls and making them future-proof, it wouldn't be a bad idea to run a couple 2x's across the wall to allow for adjustments in the cabinet spacing. I'd suggest 2x6's at 16-18" on center vertically and you can have plenty of flexibility.
Good luck on your project and post progress pix along the way!