Hướng dẫn sudo pecl install mongodb on windows - sudo pecl cài đặt mongodb trên windows

Thông tin để cài đặt tiện ích mở rộng PECL này có thể được tìm thấy trong chương thủ công có tiêu đề Cài đặt các phần mở rộng PECL. Thông tin bổ sung như phát hành mới, tải xuống, tệp nguồn, thông tin bảo trì và thay đổi, có thể được đặt tại đây: »& nbsp; https: //pecl.php.net/package/mongodb

Người dùng Linux, Unix và MacOS có thể chạy lệnh sau để cài đặt trình điều khiển:

$ sudo pecl install mongodb

Nếu hệ thống của bạn có nhiều phiên bản PHP được cài đặt (ví dụ: mặc định MacOS, homebrew, »& nbsp; xampp), lưu ý rằng mỗi phiên bản của PHP có lệnh PECL riêng và tệp php.ini. Ngoài ra, mỗi môi trường PHP (ví dụ: CLI, Web) có thể sử dụng các tệp PHP.ini riêng biệt.

Cài đặt trình điều khiển qua PECL sẽ sử dụng các phiên bản đi kèm của »& nbsp; libbson và» & nbsp; libmongoc và cố gắng tự động định cấu hình chúng.

Lưu ý: Nếu quá trình xây dựng không tìm thấy thư viện SSL, hãy kiểm tra xem các gói phát triển (ví dụ: libssl-dev) và »& NBSP; PKG-Config đều được cài đặt. Nếu điều đó không giải quyết vấn đề, hãy xem xét sử dụng quy trình cài đặt thủ công.: If the build process fails to find an SSL library, check that the development packages (e.g. libssl-dev) and » pkg-config are both installed. If that does not resolve the problem, consider using the manual installation process.

Cuối cùng, thêm dòng sau vào tệp php.ini cho từng môi trường mà bạn dự định sử dụng trình điều khiển:

Mohammadhoseinmazalahi tại Gmail Dot Com ¶

2 năm trước

As of Ubuntu 20.04, php-mongodb in the database is outdated and you'll need the PECL method to install latest version of MongoDB.

To do this in Ubuntu, you'll need the php-pear plugin and php-dev:
sudo apt install php-dev php-pear

then you can run:
sudo pecl install mongodb

tiếp xúc ? Automatix: thông tin ¶

6 năm trước

An additional requirement might be pkg-config (on Ubuntu 14.04).

$ pecl install mongodb
...
configure: error: Cannot find OpenSSL's libraries
ERROR: `/tmp/pear/temp/mongodb/configure --with-php-config=/usr/bin/php-config' failed

But:

$ apt-get install pkg-config
...
Setting up pkg-config (0.26-1ubuntu4) ...
$ pecl install mongodb
...
Build process completed successfully
Installing '/usr/lib/php/20151012/mongodb.so'
install ok: channel://pecl.php.net/mongodb-1.1.7
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongodb.so" to php.ini

rafael_xuvisco tại yahoo dot com dot br ¶

5 năm trước

libssl-dev1

libssl-dev2

libssl-dev3

libssl-dev4

libssl-dev5

libssl-dev6

libssl-dev7

libssl-dev8

libssl-dev9

Ẩn danh ¶

6 năm trước

As of Ubuntu 20.04, php-mongodb in the database is outdated and you'll need the PECL method to install latest version of MongoDB.1

As of Ubuntu 20.04, php-mongodb in the database is outdated and you'll need the PECL method to install latest version of MongoDB.2

rafael_xuvisco tại yahoo dot com dot br ¶

6 năm trước

As of Ubuntu 20.04, php-mongodb in the database is outdated and you'll need the PECL method to install latest version of MongoDB.4

As of Ubuntu 20.04, php-mongodb in the database is outdated and you'll need the PECL method to install latest version of MongoDB.5

As of Ubuntu 20.04, php-mongodb in the database is outdated and you'll need the PECL method to install latest version of MongoDB.6

rafael_xuvisco tại yahoo dot com dot br ¶

5 năm trước

As of Ubuntu 20.04, php-mongodb in the database is outdated and you'll need the PECL method to install latest version of MongoDB.8

As of Ubuntu 20.04, php-mongodb in the database is outdated and you'll need the PECL method to install latest version of MongoDB.9

To do this in Ubuntu, you'll need the php-pear plugin and php-dev:
sudo apt install php-dev php-pear
0

To do this in Ubuntu, you'll need the php-pear plugin and php-dev:
sudo apt install php-dev php-pear
1

To do this in Ubuntu, you'll need the php-pear plugin and php-dev:
sudo apt install php-dev php-pear
2

To do this in Ubuntu, you'll need the php-pear plugin and php-dev:
sudo apt install php-dev php-pear
3

Ẩn danh ¶

5 năm trước

To do this in Ubuntu, you'll need the php-pear plugin and php-dev:
sudo apt install php-dev php-pear
5

To do this in Ubuntu, you'll need the php-pear plugin and php-dev:
sudo apt install php-dev php-pear
6

Ẩn danh ¶

5 năm trước

To do this in Ubuntu, you'll need the php-pear plugin and php-dev:
sudo apt install php-dev php-pear
8

To do this in Ubuntu, you'll need the php-pear plugin and php-dev:
sudo apt install php-dev php-pear
9

then you can run:
sudo pecl install mongodb
0

then you can run:
sudo pecl install mongodb
1

then you can run:
sudo pecl install mongodb
2

then you can run:
sudo pecl install mongodb
3

Ẩn danh ¶

5 năm trước

then you can run:
sudo pecl install mongodb
5

then you can run:
sudo pecl install mongodb
6

then you can run:
sudo pecl install mongodb
7

Làm thế nào để bạn cài đặt các phần mở rộng PECL?

Cài đặt các phần mở rộng PECL trong Debian..
Cài đặt các điều kiện tiên quyết. Cài đặt APT-Get Tạo APT-Get Cài đặt PHP5-DEV APT-GET Cài đặt PHP-PEAR. ....
Cú pháp PECL. Cú pháp cho phần mở rộng PECL cài đặt PECL Cài đặt ExtName-Ver ..
Ví dụ cài đặt tiện ích mở rộng PECL. ....
Bật tiện ích mở rộng PECL trong PHP5. ....
Kích hoạt phần mở rộng. ....
Dọn dẹp. ....
Verify..

PECL được cài đặt ở đâu?

Mô -đun sẽ được cài đặt trong/usr/lib64/php/modules/as /usr/lib64/php/modules/uploadprotress.so. Lưu ý: Đặt trong phần "Phần mở rộng động"! Nếu bạn đang sử dụng FastCGI, hãy chỉnh sửa "PHP./usr/lib64/php/modules/ as /usr/lib64/php/modules/uploadprogress.so. NOTE: Place under the"Dynamic Extensions" section! If you are using FastCGI, edit the domain's "php.

Pecl trong Linux là gì?

PECL (Thư viện cộng đồng mở rộng PHP) là một spin-off của PEAR và chủ yếu được sử dụng để chứa các nhóm chức năng không còn được gói với việc cài đặt PHP mặc định.Kể từ Php 5, các tiện ích mở rộng này có thể được tải xuống và cài đặt riêng với tải xuống PHP thông thường.PHP Extension Community Library) is a spin-off of PEAR, and is primarily used to house groups of functions that are no longer bundled with the default installation of PHP. As of PHP 5, these extensions can be downloaded and installed separately from the regular PHP download.

Làm thế nào cấu hình MongoDB trong PHP?

Kết nối với máy chủ MongoDB trên máy địa phương của bạn Tải xuống cộng đồng hoặc phiên bản doanh nghiệp của Máy chủ MongoDB.Cài đặt và định cấu hình Máy chủ MongoDB.Bắt đầu máy chủ.