问题
I have downloaded MongoDB from the official site as an .msi file and during installation it stops and freezes and after half an hour, and gives an error as the setup wizard ended prematurely.
I have a fresh installation of Windows 10 Pro (64-bit) installed just today, and there are no other applications which should be interfering with MongoDB.
I have NodeJS (v8.10.0), npm(5.6.0) installed properly Windows firewall is turned off and there is no antivirus running.
Is this problem of any missing drivers or any change in BIOS settings?
回答1:
I had this problem too and solve it in this way:
- Remove the older version of MongoDB if you have installed it before.
- Disable your antivirus if you have any of them
- Go to C:>users>"UserName">AppData>Local>Temp
- Right Click on Temp and go to Properties
- Select Security Tab
- Select the User and check the permission and controll give the user full control by Checking Full Control on permission
- Go Ahead and Install MongoDB.
Note that if you want to install MongoDB compass too, you should have internet connection.
I hope this will work for you.
回答2:
For me unchecking Install Compass helped ...
回答3:
I disabled installing the router (mongos) and bundeled software client (MongoDB Compass) and installer ran fine after that. Hope this helps.
来源:https://stackoverflow.com/questions/49220245/mongodb-error-as-setup-wizard-ended-prematurely-while-installing-it-on-windows