Assuming you are talking about unopened beer bottles:
The best way to store your beer is in a cool, dark place. Ideally, you should store your beer in a wine cellar or basement where the temperature is fairly consistent. If you don't have access to a wine cellar or basement, you can store your beer in the fridge. However, be aware that storing your beer in the fridge for long periods of time can cause it to lose some of its flavor.
When storing your beer, make sure to keep it away from sunlight and heat sources as both of these can cause your beer to go bad. Also, be sure to store your beer upright so that the yeast doesn't settle at the bottom of the bottle and spoil the flavor.