MAC下jdk、cassandra的安装,jdkcassandra
一、安装jdk
下载最新版http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
按照提示默认安装
二、配置jdk
(1)创建.bash_profile配置文件
touch ~/.bash_profile
(2)配置.bash_profile文件
vim ~/.bash_profile
export JAVA_8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
export JAVA_HOME=$export JAVA_8_HOME
保存退出
(3)重新执行.bash_profile文件
source ~/.bash_profile
三、测试
java -version
四、安装cassandra
下载最新版http://cassandra.apache.org/download/
解压tar -zxvf apache-cassandra-3.7-bin.tar
五、测试
(1)窗口1
cd bin
./cassandra -f
(2)窗口2
cd bin
./cqlsh
(3)创建数据库
use test;
create table User(id int,user_name varchar,PRIMARY KEY(id));
insert into User(id,user_name) values(1,'wucan');
select * from User;
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。