“Hello” is one the first word you need to learn in Spanish, if you don’t already know it : Hola. It’s the most common word for greeting your friends.
There are other greetings you might want to learn. Use them depending on the time of the day:
Buenos días (Good morning. Have a good day)
Buenas tardes (Good afternoon)
Buenas noches (You say Buenas noches in the evening and at bedtime)
If you want to greet someone and ask how they are then you say:
Hola, ¿ cómo estás ? (Hello, how are you?)
Muy bien, gracias. (Very well, thanks!) ¡No muy bien! (This means that things aren´t too good).
If you want to say “Goodbye” then you say Adiós.
You can also say Hasta luego if you want to say “See you again”.