Many Linux users like to use the mongodb database, a handy database. However, some users want to install the mongodb extension, but do not know how to install it. Therefore, Xiaobian now teaches you how to install the mongodb extension. Users who need it can take a look.
installation steps:
environment
nginx /1.4.4
PHP 5.4.22
MongoDB 2.4.10
1. Download the extension installation package
wget http://pecl.php.net/get/mongo-1.4.5.tgz
2. Compile and install
>
tar xvf mongo-1.4.5.tgz -C /usr/src
cd /usr/src/mongo-1.4.5/
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
3. Configure php.ini, add The following two lines
[mongo]
extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/mongo.so
4. Reload php-fpm, nginx
pkill php-fpm
/usr/local/php/sbin/php-fpm
/usr/local/Nginx/sbin/nginx -s reload
5. Verify that the installation is successful
php -m
Linux system clean disk space can be as easy as windows, then how to clean up Linux
We all know that Linux can be operated with a variety of commands, there are quite a few commands fo
The time of the Linux system is sometimes inaccurate. Inaccurate time will cause errors in the time
Many users have learned that if BackTrack5 is installed using a hard disk, it is a
Krita software in the Linux system tutorial
Ubuntu 13.10 steps to open VLC desktop notifications
How to use the find command in Linux
How to use the "yes" command in Linux?
How do old computers install open source Linux systems?
Linux using virtual machine to install Windows 10
How does Linux use tools to encrypt data?
Linux change 22 port method summary
Linux system view wwn number trick
How to prevent hacking attacks on Win10 computers
What should I do if I install IE 11? IE 11 installation process detailed
Seven major issues to be aware of server stability
How to set the Win7 system cache space?
How to use the fingerprint recognition function built in Windows 7?
Easily handle variable values in Win XP systems
How to set up Windows Defender in Windows 8 system
Win10 Spartan browser new "reading mode" and "read list" function detailed
How to uninstall the KB3000850 patch to solve the incompatibility problem of the Win8 system