How to make dogs not bite?

By huanggs
My puppy has been more than 2 months old. Before, it liked to bite my trousers. A few days ago, my mother wiped her body, and it turned to bite my mother's hand. Now when others touch it, it turns her head and opens her mouth to bite people. What should I do?