If the successful people you meet in real life are nice and you see lots of meanness on the internet, it probably just means that anonymity causes meanness.
But once one becomes an adult, there is a much greater leeway in choosing whom to interact with, so it is often possible to not interact with mean people at all.