万岁 literally means 'ten thousand years.' In imperial China, only the emperor could be addressed as 万岁, and using it for anyone else was a serious offense.
usage
In modern Chinese, 万岁 is used casually as 'hurrah!' or 'hooray!' to celebrate, similar to how 'long live' is used colloquially in English.