urinary tract infection

Has anyone ever had a UTI? If so how do you get a UTI? Easy ways to get rid of it? I think I may have one. Urine has an odd oder, sometimes cloudy. It also feels like I have to pee a lot more often than usual, and when I go sometimes barely anything comes out.