Nickel oxide nanotubes with great antibacterial activities, electrochemical capacitance, and magnetic properties have been synthesized through a precursor method with dimethylglyoxime as precipitant for the precursor, and the method has been developed for the synthesis of Ni/C nanorods.