by kevin ho.
The problem was solved.
A friend told me that because I didn't have smtpserver so the confirmed mail can not issue automatically.
For user log in problem, because I didn't enable the self enrollment in "course administration/user/enrollment method/self enrollment", so the user can log in moodle but can't access any course. After enable it, it works.