How to get over a break up

I was with my ex for over two years we broke up a few months ago and I just can't get over him, he's all I think about and it just hurts man.😔