How to add a machine to different environment?

I have two systems, one need more cpu than memory, and the other need more memory than cpu. I want to deploy these two systems in on server, how to?

Sorry, I have got the idea. By using different service in one environment. I should not create two environments.