This means you need some sort of heat pump. For a practical example you can look at the ISS, which has what they call the "External Active Thermal Control System" (EATCS), it's a complicated system and it provides 70kW of heat rejection. A datacenter in space would need to massively scale up such a system in order to cool itself.