Open cavacn opened 8 years ago
以上步骤,仅为下载文件和配置相关环境变量。 还需要 配置zookeeper集群
echo 'export ZOOKEEPER_HOME=~/cavacn/zookeeper-3.4.6' >> ~/.bashrc #添加zookeeper环境变量 echo 'export PATH=$PATH:$ZOOKEEPER_HOME/bin' >> ~/.bashrc #添加到path变量中 echo 'export CLASSPATH=$CLASSPATH:~/cavacn/zookeeper-3.4.6/lib' >> ~/.bashrc #添加到CLASSPATH变量
source ~/.bashrc
yum update -y #安装更新,静等安装完毕~如果等不耐烦 cd ~ && mkdir cavacn && cd cavacn yum install java-1.7.0-openjdk.x86_64 -y #安装JDK wget http://apache.fayea.com/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz #安装zookeeper 3.4.6 tar -xvf zookeeper-3.4.6.tar.gz #解压zookeeper 3.4.6 wget http://42.121.19.155/jstorm/jstorm-2.1.0.tar.bz2 #下载JSTORM 2.1 tar -xvf jstorm-2.1.0.tar.bz2 #解压 echo 'export JSTORM_HOME=~/cavacn/deploy/' >> ~/.bashrc #添加JSTORM_HOME环境变量 echo 'export PATH=$PATH:$JSTORM_HOME/bin' >> ~/.bashrc #添加到PATH环境变量 source ~/.bashrc #应用