Preventing stagnation, for example by removing from a network of pipes any sections that have no outlet (dead ends).
Periodic disinfection of the system, by high heat or a chemical biocide, and the use of chlorination where appropriate.