In my opinion, it has different meanings accroding to the different situiations.For instance , if someone just encountered the failure or something else which made him in low spirit,the sentence means "To be cheerful".When someone is just affraid of something ,the sentence means " To be brave!".