1. 打开网址: https://pecl.php.net/package/mongodb 选择适合自己的版本。
php_mongodb-1.4.3-7.2-nts-vc15-x86
2. 复制文件到PHP安装的扩展文件夹:D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\ext
~~~
php_mongodb.dll
~~~
3. 打开php.ini 添加:
~~~
extension=php_mongodb.dll
~~~
4. 重新启动nginx服务器

5. windows环境下运行函数`phpinfo()`,查看是否安装成功:
~~~
http://localhost/phpinfo.php
~~~

* * * * *
http://php.net/manual/en/mongodb.installation.windows.php
