After having hernia surgery, a rapid recovery is crucial. Sticking with your physician's instructions and taking the right steps can significantly accelerate your healing process. Start by taking pain relievers as directed by your physician. Refrain from heavy activity for at least three weeks. Consume a balanced diet to support healing.