Socket on-off control method and device

The invention discloses a socket on-off control method and device. The method comprises the steps that whether a socket processor is restarted after power failure; when the processor is restarted after power failure, the energization state of the socket is set to be a close state. The invention discloses an on-off state for adjusting the socket.