I have heard that you are not to show fear. Animals can sense when you are afraid and that can make them be more aggresive. Just be confident and keep running by, dont give them the opportunity to run up to you.

I have a healthy fear of dogs myself and I usually try to stay confident and not show my fear.