To improve the beam quality of the uplink laser, a 37 channel piezo-ceramic deformable mirror was inserted into the laser launch optics to compensate the static aberrations. An interferometer was used as the calibration light source as well as the wavefront sensor to perform closed-loop correction for the moment. About 0.38λ root mean square (rms) aberrations, including the deformable mirror's initial figure error, were compensated, and the residual error was less than 0.07λ rms. Field observations with a 2 m optical telescope demonstrated that the peak intensity value of the laser guide star (LGS) spot increased from 5650 to 7658, and the full width at half-maximum (FWHM) size reduced from 4.07 arcseconds to 3.52 arcseconds. With the compensation, an improved guide star spot can be obtained, which is crucial for the adaptive optics systems of ground-based large telescopes.