By honesty and generosity. By making wealth my servant, to help me serve others, and not allowing it to be my master, enslaving me to serve myself. The two attitudes contrasted in Proverbs 11 are selfishness and godliness. Selfishness sees material wealth as an end in itself. Godliness sees wealth as a means to the end of blessing others and serving God.
Selfishness puts the gaining and keeping of wealth above the welfare of others.
Godliness is willing to settle for less if it means benefitting others and obeying God. Look at verse 26 for example. People curse the man who hoards grain, but blessing crowns him who is willing to sell. God blesses a wealthy landowner with good harvests. He has all he needs and much more.