A single-longitudinal-mode fiber laser is presented, which is composed of a ring cavity laser and a π phase-shifted fiber Bragg grating. The ring cavity structure can reduce the spatial hole burning, but the mode hopping and competition are still existing due to the long fiber ring cavity length. The π phase-shifted fiber Bragg grating has very narrow transmittance spectrum width as a band-pass filter. Combined with a wavelength-matching fiber Bragg grating, it is able to efficiently suppress the mode hopping and competition in the ring cavity. The single longitudinal mode lasing is verified using a scanning F-P interferometer. Its frequency noise is measured by the self-homodyne technology with a 3×3 optical fiber coupler. The calculated linewidth from the frequency noise is about 21kHz when the measurement time is 0.2s.