Keep you chin up and only time will heal what happening inside your head. Stay away from bars and alcohol. Doing those things only can get you into other problems.
Get with a set of close friends that have good listening skills and will give you proper advise.
Seek out counselling from a chaplin. What you tell them is in confidents, and will not just be a good wiping post, but assist you getting through this dreaded time.
A sudden lose in relationship wheither it a wife or a girlfriend is tough thing to deal with. Especially without a good support group. I have been there more time then I care to count.
Been deployed 3 times, not counting short tours to Korea, Germany, and Central America.
Divorced so many times, I keep a lawyer on retainer. (joke)
When people see me in uniform and ask me what a particilar ribbon is, I tell them that was my first divorce, this one is my second, and so on......
I always use humor as a self defense. It seems to get me through anyways.