As you like; in the way you prefer. Can indicate permission, resignation, or encouragement depending on context.
自分の好きなようにやってみてください。
Please try doing it however you like.
料理は好きなように取ってください。
Help yourself to the food as you like.
彼はいつも好きなように服を選ぶ自由がある。
He always has the freedom to choose his clothes as he likes.