To manage pain after hernia surgery, take prescribed pain medications as directed, use over-the-counter pain relievers if recommended, apply ice packs to the surgical site, get plenty of rest, and avoid strenuous activities. Following the surgeon's pain management plan is crucial for a comfortable recovery.