System environment: CentOS x86_64
Tokutek for the MongoDB of the modified version, to a large extent, to solve the mongodb deficiencies, such as disk occupancy space.
Open ports:
-A input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT
-A input-m state--state new-m tcp-p TCP--dport 27017-j ACCEPT
-A input-m state--state new-m tcp-p TCP--dport 28017-j ACCEPT
Install TOKUMX
1. Download Tokutek
Enter the official website http://www.tokutek.com/to download, select Tokumx, I now download the latest 2.0 version
Tokumx-2.0.0-linux-x86_64-main.tar.gz
2. Extract and move to/mongodb
# Mkdir/mongodb
# mkdir/mongodb/db
# TAR-ZXVF Tokumx-2.0.0-linux-x86_64-main.tar.gz
# MV tokumx-2.0.0-linux-x86_64/mongodb/tokumx-2.0.0
3. Create mongdb.conf configuration file
# vim/mongodb/tokumx-2.0.0/etc/mongodb.conf
The contents are as follows:
# MongoDB config file
port=27017
dbpath=/mongodb/db
Logpath=/mongodb/logs/mongo.log
Pidfilepath=/mongodb/tokumx-2.0.0/mongodb.pid
Fork=true//Background start
Logappend=true//Logging method, append to log file
Auth=true//user authentication Open
4. Start
/mongodb/tokumx-2.0.0/bin/mongod-f/mongodb/tokumx-2.0.0/etc/mongodb.conf
No use the configuration file can be started using the following command:
#/mongodb/tokumx-2.0.0/bin/mongod--dbpath=/mongodb/db/--logpath=/mongodb/logs/tokumx.log-fork
Install Rockmongo management Tools
1. Install PHP
# Yum Install php php-devel
2. Test whether the installation was successful
# vim/var/www/html/phpinfo.php//After testing please delete this file to avoid system information leakage
The contents are as follows:
<?php phpinfo ()?>
3. Start httpd Service
#/ETC/INIT.D/HTTPD Start
4. Visit
http://your_ip/phpinfo.php
5. The following illustration shows that the installation was successful:
6. Start Installation Rockmongo
Download: http://rockmongo.com/downloads
The Rockmongo-1.1.7.zip under my current
# Unzip Rockmongo-1.1.7.zip
# MV Rockmongo-1.1.7/var/www/html/rockmongo
Access to http://your_ip/rockmongo/appears:
8. Install mongo-php Drive
Click on the hint connection to install the mongo-php driver: https://github.com/mongodb/mongo-php-driver
Installation method See http://php.net/manual/en/mongo.installation.php
Unzip Mongo-php-driver-master.zip
CD Mongo-php-driver-master
Make test--> error, see article
If the above operation is wrong, go to Http://pecl.php.net/package/mongo to download the latest reinstall. (I was installed here in accordance with the official method of error, PHP--version when the PHP warning:php startup:unable to load dynamic library '/usr/lib64/php/modules /mongo.so ' Unable to load the mongo.so module, after downloading the installation from this address again, finally succeeded.
9. Edit # Vim/etc/php.ini after installation complete
After the
extension_dir , add
10. Restart HTTPD Service #/etc/init.d/httpd Restart
Access http://your_ip/rockmongo/again appears as follows:
11. Modify Admin username and password
The default user name is Admin, password is admin, modify account Edit file/var/www/html/rockmongo/config.php
$MONGO ["Servers"] [$i] ["Control_users"] ["admin"] = "123456"; User name admin, password 123456
12. Login with new username password:
1. Starting times the following error:
Tue Oct 18:20:42.203 [Initandlisten] tokumx would not run with transparent huge pages enabled.
Tue Oct 18:20:42.203 [Initandlisten] Please disable them to continue.
Tue Oct 18:20:42.203 [Initandlisten] (echo never >/sys/kernel/mm/transparent_hugepage/enabled)
Tue Oct 18:20:42.203 [Initandlisten]
Tue Oct 18:20:42.203 [Initandlisten] The assertion failure you are about to the-is are.
Executive: Echo Never >/sys/kernel/mm/transparent_hugepage/enabled
The following error occurred during 2.make test mongo-php-driver:
=====================================================================
---------------------------------------------------------------------
Test for php-466:seed List of 1 Replicaset member, and one standalone, with array ("Replicaset" => true) fails. [TESTS/GENERIC/BUG00466.PHPT]
Test for Php-602:use Real error codes to mongoconnectionexception on ctor failure. [TESTS/GENERIC/BUG00617.PHPT]
Test for Php-795:mongocode segfaults when internal ' code ' property is modified [TESTS/GENERIC/BUG00795.PHPT]
Mongoid:serialize () and Unserialize () [TESTS/GENERIC/MONGID-SERIALIZE.PHPT]
Test for Php-270:ext/mongo classes should return meaningful results from Reflection API [Tests/no-servers/bug00270-arginf O.PHPT]
Test for Php-434:mongo::connect () doesn ' t validate the object. [TESTS/NO-SERVERS/BUG00434.PHPT]
Test for php-747:improve Numeric Check for write concern option [TESTS/NO-SERVERS/BUG00747.PHPT]
Test for bug php-814:passing in invalid MongoDB to Mongodbref::get () Segfaults [TESTS/NO-SERVERS/BUG00814.PHPT]
Test for php-815:mongocursor ctor doesn ' t validate the Mongoclient object. [TESTS/NO-SERVERS/BUG00815.PHPT]
Test for php-833:killcursor with wrong hash. [TESTS/NO-SERVERS/BUG00833_ERROR.PHPT]
Test for Php-1218:add Mongodate->todatetime to allow creation of DateTime object from Mongodate [tests/no-servers/bug0 1218-PHP53.PHPT]
Mongocollection::toindexstring (broken) [TESTS/NO-SERVERS/MONGOCOLLECTION-TOINDEXSTRING-BROKEN.PHPT]
Mongodate micro/milliseconds discrepancy [TESTS/NO-SERVERS/MONGODATE-007.PHPT]
Mongopool:check that it's all deprecated [TESTS/NO-SERVERS/MONGOPOOL.PHPT]
Test for php-612:impossible to provide a list of tagsets to the readpreferencetags options [tests/replicaset/legacy/bug00 612.PHPT]
Test for Php-506:ensure Mongo constructor casts passwords to strings. [TESTS/STANDALONE/BUG00506.PHPT]
=====================================================================
PHP warning:php startup:unable to load Dynamic library '/usr/lib64/php/modules/mongo.so '
These errors occurred when I installed the mongo-php-driver according to the official method, and the result was wrong, and the problem was repaired after I downloaded the new installation from the other address Http://pecl.php.net/package/mongo.