Synthesis of 3-hydroxy-2-nitropyridine: add 10g of 3-hydroxypyridine, 80ml of ethyl acetate, 4.2g of KNO3 and 21ml of acetic anhydride into a 250mL three-necked flask, and heat at 45°C with magnetic stirring After the reaction is completed, it is cooled to room temperature, filtered with suction, washed with a small amount of ethyl acetate for 1 to 2 times, the filtrate is taken to adjust the pH to neutrality with saturated NaOH solution, and extracted with ethyl acetate for 3 to 4 times. , take the extract and add activated carbon and heat under reflux for 1 hour, cool and filter, take the filtrate, dry with anhydrous magnesium sulfate, filter, concentrate on a rotary evaporator, and dry in a drying oven. 11.9 g of 3-hydroxy-2-nitropyridine was obtained with a yield of 81%.