The invention relates to a server comprising a base plate, a circuit board and a buckling mechanism, wherein the buckling mechanism is used for detachably installing the circuit board on the base plate and comprises a bracket and a sliding part, wherein the bracket is provided with a connecting pin; the connecting pin comprises a rod body and an end part, wherein the rod body is connected with the bracket, the end part is formed on the tail end of the rod body, and the end part is bigger than the rod body; the sliding part is provided with a clamping groove and a sliding groove, wherein the sliding groove corresponds to the connecting pin; the clamping groove comprises a circular hole and a limit groove, the circular hole faces to the sliding groove, the limit groove is communicated with the circular hole, and the diameter of the circular hole is larger than the width of the limit groove; the sliding groove comprises an opening and a slot, wherein the opening faces to the clamping groove, the slot is communicated with the opening, the opening is larger than the end part of the connecting pin, and the slot is smaller than the end part of the connecting pin but not smaller than the rod body of the connecting pin; the end part of the connecting pin penetrates through the opening of the sliding groove; and the sliding part slides towards a first direction relative to the bracket to enable the rod body of the connecting pin to be clamped into the slot of the sliding groove, therefore, the disassembly and the assembly of the circuit board can be realized through the self buckling matching of the buckling mechanism, without screws, screwdrivers, and the like, and the advantages of simpleness and convenience are achieved.