A method for controlling a greenhouse, which can adaptively control a greenhouse depending on the kind of crop growing in greenhouse provided. System for controlling a greenhouse may comprise a greenhouse environment control information distribution device and a greenhouse control device. Greenhouse environment control information distribution device may comprise: information receiving unit for receiving information of a crop growing in a greenhouse, information of sensors mounted in greenhouse, and information of actuators; selection unit for selecting a sensor service and an actuator service, which correspond to received sensor information and actuator information, from a sensor service registry and an actuator service registry, respectively; mapping unit for mapping a sensor for providing selected sensor service to an actuator for providing selected actuator service; and distribution unit for extracting growth environment information from a database based on crop information and mapping information and distributing extracted information to greenhouse control device.