tokumx的安装和使用

  1. Add the Tokutek package signing key.

    $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 505A7412
    

    You can check that the fingerprint is correct:

    $ sudo apt-key finger 505A7412
    /etc/apt/trusted.gpg
    --------------------
    pub   2048R/505A7412 2014-01-27
          Key fingerprint = DA56 C65D 432E DAB1 F183  AA6F 70A4 E325 505A 7412
    uid                  Timothy Callaghan (Tokutek Key) <tim@tokutek.com>
    sub   2048R/46A1A9B9 2014-01-27
    
  2. Add an entry for the TokuMX package repository for your release (wheezy, precise, quantal, raring, saucy, or trusty).

    $ echo "deb [arch=amd64] http://s3.amazonaws.com/tokumx-debs $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/tokumx.list
    
  3. Update apt and install TokuMX.

    $ sudo apt-get update
    $ sudo apt-get install tokumx
    

Running the server

If migrating from an existing MongoDB installation, copy any relevant configuration from /etc/mongodb.conf to /etc/tokumx.conf.

To migrate your existing data to TokuMX, start here: Migrating from MongoDB

  1. To control the mongod data server, use service:

    $ sudo service tokumx start
    $ sudo service tokumx restart
    $ sudo service tokumx stop
    
  2. To enable TokuMX on boot, use chkconfig on Debian:

    $ sudo chkconfig tokumx on
    $ sudo chkconfig tokumx off
    

    or update-rc.d on Ubuntu:

    $ sudo update-rc.d tokumx defaults
    $ sudo update-rc.d tokumx remove
    

Connecting to TokuMX

Use the mongo shell:

$ mongo
TokuMX mongo shell v1.4.2-mongodb-2.4.10
connecting to: test
Welcome to the TokuMX shell.
For interactive help, type "help".
For more comprehensive documentation, see
    http://docs.mongodb.org/
and the TokuMX Users' Guide available at
    http://www.tokutek.com/products/downloads/tokumx-ce-downloads/
Questions? Try the support group
    http://groups.google.com/group/tokumx-user
> db.serverBuildInfo().tokumxVersion
1.4.2
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值