Find the studs in the wall behind the cabinet and mark their positions on the cabinet. Pre-drill holes through the rear of the cabinet into the studs. Then secure the cabinets to the wall with large screws. The cabinets are quite heavy, so putting screws into the wall studs will help to hold them securely in place.