1. First, turn off the power to the generator to prevent the fire from spreading.
2. Second, use dry powder fire extinguishers, carbon dioxide fire extinguishers, etc. to extinguish the fire. When using a fire extinguisher, be sure to stand behind the wind direction, aim the extinguisher at the root of the fire source, and press the nozzle to extinguish the fire.
3. Then, if the fire is relatively large, you can use a fire blanket to put out the fire. Unfold the fire blanket, cover it with the fire source, and use a hammer or other tools to compact the fire blanket so that it fits tightly to the ground to isolate the air.
4. Finally, call the local police telephone number in time and notify the fire brigade to come and deal with it.