You can simply use hola (hello or hi) on its own. You can also use buenos días (good morning), buenas tardes (good afternoon or good evening – provided it's still light) and buenas noches (good evening – once it's dark). Spanish speakers often use both together, as in hola, buenos días and hola, buenas tardes.