The calculation results of the inclusive spectra of D-mesons produced in pp-collisions as the functions of the Feynman variable x and transverse momentum p(T) are presented in the frame of the quark-gluon string model, in which the dependence of quark distributions in hadrons and quark fragmentation functions on p(T), is taken into account. Good agreement with experimental data square-root s = 27.4 GeV is achieved for the value of interception of the Regge-trajectory charmonium near to zero. The satisfactory description of the experimental data in the frame of QGSM indicates essential contribution of the peripheral mechanism of the D-meson production at high energies.