Vaccines, like the flu shot, increase resistance to certain illnesses. Other strategies to boost your immune system include eating healthily, exercising, keeping a healthy weight, getting enough sleep, quitting smoking, and abstaining from excessive alcohol consumption.