CacheCloud 所需要环境

按照文档搭建 CacheCloud 所需环境, 参考官方文档第六部分。

  1. JDK 7+
  2. Maven 3
  3. MySQL 5.5
  4. Redis 3

安装 JDK

1.登陆网站下载 JDK 安装包

http://www.oracle.com/technetwork/java/javase/downloads/index.html

2.下载安装包, 解压缩后放到 /usr/local/java/ 目录下, 配置 JAVA 环境变量

参考资料:http://www.jb51.net/article/87701.htm

安装 Maven

1.Run the wget command from the dir you want to extract maven too.

使用 wget 命令下载 maven 软件包

wget http://mirrors.cnnic.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

2.run the following to extract the tar

执行解压缩命令

tar xvf apache-maven-3.3.9-bin.tar.gz

3.move maven to /usr/local/apache-maven

拷贝解压后的代码到指定文件夹下

mv apache-maven-3.3.9 /usr/local/apache-maven

4.Next add the env variables to your ~/.bashrc file

增加环境变量

1
2
3
export M2_HOME=/usr/local/apache-maven
export M2=$M2_HOME/bin
export PATH=$M2:$PATH

5.Execute these commands

使环境变量生效

source ~/.bashrc

6.Verify everything is working with the following command

检测环境变量是否生效

mvn -version

参考:https://www.cnblogs.com/xdsfoo/p/5007380.html

安装 MYSQL

安装 MYSQL 一般可以使用官方的方案:

https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/

Donate - Support to make this site better.
捐助 - 支持我让我做得更好.