Formal:
* 你好,朋友 (nǐ hǎo, péngyou) - This is the most common and polite way to greet a friend. It literally translates to "hello, friend."
* 朋友您好 (péngyou nín hǎo) - This is a slightly more formal way to greet a friend, especially if you are addressing someone older or in a position of authority.
Informal:
* 朋友,你好 (péngyou, nǐ hǎo) - This is a more casual way to greet a friend.
* 嗨,朋友 (hāi, péngyou) - This is a very informal and friendly way to greet a friend. It's similar to saying "Hey, friend!"
* 老朋友,你好 (lǎo péngyou, nǐ hǎo) - This is a way to greet an old friend, literally translating to "old friend, hello."
Note: "朋友 (péngyou)" can be used as a standalone greeting, similar to saying "Hey!" or "What's up?" to a friend.
The best way to choose which phrase to use is to consider your relationship with the person and the situation.