where is the bitcoin's private key saved? I'm making a service and I will have to take charge of users' private keys
So I'm really worried about it.how should i take charge of that?
You should not ask users for their private keys. Instead, generate new addresses (with private keys) for the users to deposit bitcoin into. Then ensure you keep those keys safe and secure, back them up and keep them encrypted