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

Installing on Mac OS X

You'll need to set up your environment so that Cassandra knows where to find the latest version of Java. To do this, set up your JAVA_HOME environment variable to the install location, and your PATH to include the executable in your new Java installation, as follows:

$ export JAVA_HOME=" /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home"
$ export PATH="$JAVA_HOME/bin":$PATH

You should put these two lines at the bottom of your .bashrc or .bash_profile file to ensure that things still work when you open a new terminal.

The installation instructions given earlier assume that you're using the latest version of Mac OS X (at the time of writing this, 10.11.6 El Capitan). If you're running a different version of OS X, installing Java might require different steps. Check out https://www.java.com/en/download/faq/java_mac.xml for detailed installation information.

Once you've got the right version of Java, you're ready to install Cassandra. It's very easy to install Cassandra using Homebrew; simply type the following:

$ brew install cassandra
$ pip install cassandra-driver cql
$ cassandra

Here's what we just did:

  • Installed Cassandra using the Homebrew package manager
  • Installed the CQL shell and its dependency, the Python Cassandra driver
  • Started the Cassandra server
主站蜘蛛池模板: 巴彦淖尔市| 涡阳县| 大渡口区| 中超| 东山县| 海林市| 阳城县| 武城县| 阳城县| 时尚| 夹江县| 厦门市| 东辽县| 京山县| 安宁市| 启东市| 汽车| 射阳县| 北票市| 建始县| 湄潭县| 师宗县| 安塞县| 泰宁县| 茌平县| 大安市| 平潭县| 杭锦旗| 弥勒县| 金华市| 阿城市| 清镇市| 武夷山市| 固阳县| 淮滨县| 宕昌县| 怀宁县| 宜宾市| 璧山县| 简阳市| 贵阳市|