In the wavelength modulation spectroscopy (WMS) gas detection system, the laser diode is usually stabilized at a constant temperature and driven by current injection. So, a high-precision temperature controller is indispensable in every WMS system. To eliminate wavelength drift influence and improve detection sensitivity and response speed, laser wavelength sometimes needs to be locked at the gas absorption center. In this study, we develop a temperature controller to an ultra-high stability level of 0.0005 °C, based on which a new laser wavelength locking strategy is proposed to successfully lock the laser wavelength at a CH4absorption center of 1653.72 nm with a fluctuation of fewer than 19.7 MHz. For 500 ppm CH4sample detection, the 1σSNR is increased from 71.2 dB to 80.5 dB and the peak-to-peak uncertainty is improved from 1.95 ppm down to 0.17 ppm with the help of a locked laser wavelength. In addition, the wavelength-locked WMS also has the absolute advantage of fast response over a conventional wavelength-scanned WMS system.