I’ve been searching for a long time but can’t find anything wrong! What’s going on? The result I want is that mongo can start automatically when booting!
It can be started through the command line! But it cannot be started automatically at boot! It needs to be started through the command line every time, and it cannot be closed!
You need to bring the --install parameter to mongod to install the service, and then net start MongoDB in cmd
The following is the official website tutorial. If you set up auto-start on the window
Click here to view