While it can be considered a phrase, it doesn't fit neatly into a single part of speech like nouns, verbs, adjectives, etc. Greetings are typically considered social conventions and function as interjections, expressing a specific sentiment or intention.