The invention discloses a method used for preparing
mesoporous carbon taking
chitosan oligosaccharide as a
carbon nitrogen source. The method comprises following steps: 1, F127 is prepared, and is added into water, stirring
oil bath treatment is carried out for 0.5 to 1.5h at 40 to 80 DEG C so as to obtain a solution A; 2,
chitosan oligosaccharide is added into water, and stirring
oil bath treatment is carried out for 0.5 to 1.5h at 40 to 80 DEG C so as to obtain a solution B, wherein, in the stirring process,
glyoxal is added; 3, the solution B is added into the solution A so as to obtain a solution C, the solution C is subjected to stirring
oil bath treatment for 1.5 to 2.5h at 40 to 80 DEG C so as to obtain a solution D; 4, 1 to 2 times of water is added into the solution D for
dilution, an obtained diluted solution is subjected to stirring reaction for 4 to 20h at 40 to 80 DEG C so as to obtain a solution E; 5, the solution E is cooled to
room temperature, is introduced into a hydro-
thermal reaction vessel, and is subjected to hydro-
thermal reaction for 20 to 72h at 130 to 150 DEG C so as to obtain a reaction solution F; 6, the reaction solution F is subjected to washing, dispersion, and
drying so as to obtain a product G; and 7, the product G is introduced into a
combustion boat for
roasting at
nitrogen atmosphere at 410 to 900 DEG C so as to obtain
mesoporous carbon. Thepreparation method is friendly to the environment; no harmful residue is left; in-situ
doping of N is realized;
pore diameter distribution range is narrow; and the performance is excellent.