The easy, informal way is "Olá " (oh-lah), but usually when you see someone you say "bom dia" (good morning) or "boa tarde" (good afternoon, but can also be used in the evening). "Boa noite" (goodnight, is mainly used to announce you are going to sleep)