官术网_书友最值得收藏!

Installing the binary tarball

You can use the binary tarball to install Cassandra on any Linux-based platform including Mac OS X and platforms without package support or if you do not want a root installation:

  1. Download the Apache Cassandra 3.0.9 binary tarball from the following:

http://www.apache.org/dyn/closer.lua/cassandra/3.0.9/apache-cassandra-3.0.9-bin.tar.gz.

  1. Use the following command to untar:
        $ tar -xvzf apache-cassandra-3.0.9-bin.tar.gz
  1. To configure Cassandra, go to the $INSTALL_LOCATION/conf directory and make the relevant changes. You can do this once you get an idea of Cassandra internals later in the book. INSTALL_LOCATION in this case will be $CURRENT_DIRECTORY/apache-cassandra-3.0.9/.
  1. Start Cassandra:
        $ cd apache-cassandra-3.0.9/
$ bin/cassandra # Use -f to start Cassandra in the foreground
  1. Verify that Cassandra is running:
        $ bin/nodetool status

You might want to add CASSANDRA_HOME=$INSTALL_LOCATION and PATH=$PATH:$INSTALL_LOCATION/bin in the .bashrc or .bash_profile files so every time you open a new terminal, you can simply launch cassandra, nodetool, or cqlsh by entering the command on terminal without changing directory every time.

主站蜘蛛池模板: 南投县| 绥江县| 社旗县| 西安市| 开远市| 八宿县| 思茅市| 招远市| 三河市| 陇南市| 霞浦县| 奉节县| 忻州市| 内江市| 久治县| 信阳市| 华阴市| 湖州市| 泾川县| 磐安县| 宜都市| 贵阳市| 葵青区| 奉贤区| 瑞金市| 曲靖市| 奎屯市| 昌黎县| 灵石县| 广元市| 错那县| 宜川县| 青川县| 泗水县| 闽侯县| 登封市| 舞阳县| 右玉县| 双辽市| 乐东| 兰坪|