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

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
主站蜘蛛池模板: 东阳市| 开鲁县| 项城市| 炎陵县| 郎溪县| 沙田区| 长岭县| 巴青县| 高雄市| 金湖县| 泗阳县| 涟源市| 泾源县| 德昌县| 卢龙县| 镇沅| 崇明县| 武冈市| 盐亭县| 河源市| 江津市| 娄底市| 百色市| 方城县| 黄梅县| 富民县| 浮山县| 兴安盟| 赤壁市| 灵丘县| 肃宁县| 达尔| 延边| 博爱县| 德令哈市| 亚东县| 东安县| 安庆市| 孟村| 康马县| 永嘉县|