Method and device for controlling slot power supply

The embodiment of the invention relates to the technical field of control and discloses a method and a device for controlling a slot power supply, which are used for controlling the hot plug of a PCIE slot. The method for controlling the slot power supply comprises the following steps of: receiving an externally-input hot-plug request corresponding to at least one PCIE slot; switching a fixed power supply loaded on the PECI slot to a controllable power supply; and unloading the controllable power supply loaded on the PECI slot when meeting a preset time value. The embodiment of the invention can control the hot plug of the PCIE slot so as to save the number of hot-plug chips of the power supply.