We theoretically study the issues for long-distance transmission of quantum key distribution (QKD) coexisting with classical signals. The recently proposed phase-matching QKD protocol can drastically improve the transmission distance of QKD. However, in the coexistence system, the noise generated by classical signals, especially spontaneous Raman scattering noise, is a big challenge. Moreover, the classical optical amplifier, which is necessary for the realistic long-distance classical communication, makes the noise more serious. In view of this, we establish the unified Raman noise model for three discrete-variable QKD protocols (BB84, measurement-device-independent and phase-matching QKD protocols) in the presence of classical optical amplifiers, which can be applied to both single-core single-mode fiber and multicore fiber. Then, we derive the key rate of the three QKD protocols coexisting with classical signals using the proposed unified Raman noise model. Finally, simulation results show that multicore fiber is promising for simultaneous long-distance transmission of QKD and the dense wavelength division multiplexing system.