Spend less than you earn, max out on 401K plan, save up a bunch, after 30 years you can save up enough not to have to work any more.
I would second that. I would add keep a good life insurance policy, endowment, only.
Get a good healt insurance policy, you WILL need one eventually.
I retired a bit early, I can get buy till social security, then that will cover inflation, and the new health insurance.
Work max hours when you work. 9-5 doesn't cut it. Take your time when you can. 4-5 weeks per year is nice. A teaching job is great, if not well paid to start.