The most important person you want to please is the person looking back at you in the mirror.
It is certainly better to be disliked and respected, than to be liked but held in contempt.
Just remember to be respected does not mean to be feared; and if everyone seems to dislike you, you might want to take a good hard look at your own nature.
However, if you are virtuous and kind to yourself and the world around you, yet still are not liked my the masses, you must be doing something right. Keep up the good work, and maybe the masses will learn something from you.