简体   繁体   English

在Ubuntu 17.04上安装php7.0 mongodb

[英]Install php7.0 mongodb on ubuntu 17.04

I am using Ubuntu 17.04 64 bit 我正在使用Ubuntu 17.04 64位

I am trying to install mongodb driver for php7.0 我正在尝试为php7.0安装mongodb驱动程序

There is no driver for this version. 此版本没有驱动程序。

How can I install it? 如何安装?

Why not, there is driver for it, to install use 为什么不呢,有它的驱动程序,可以安装使用

sudo apt-get install php-mongodb

do not sepcify any version on the php , like php7 . 不要在php上分隔任何版本,例如php7 just php-mongodb 只是php-mongodb

You can do a manual install via the pecl extension using 您可以使用pecl扩展名手动安装

$ sudo pecl install mongodb

for further info, check out this link 有关更多信息,请查看此链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM