There are two methods:
- Get upvotes by commenting, posting, etc. Don't post just to post - post something thoughtful.
- This is more like common sense: Avoid bad behavior and things that may harm the community in order to prevent your reputation getting lowered by the downvotes of others.