1.下载JDK
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jdk-8u121-oth-JPR
2.解压
tar -xzvf jdk-8u91-linux-x64.tar.gz mv jdk1.8.0_91 /opt cd /opt/jdk1.8.0_91
3.设置环境变量
vim ~/.bashrc
# install JAVA JDK export JAVA_HOME=/opt/jdk1.8.0_91 export CLASSPATH=.:${JAVA_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH 保存退出 执行 source ~/.bashrc
4.注册
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_91/bin/java 1 update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_91/bin/javac 1 update-alternatives --set java /opt/jdk1.8.0_91/bin/java update-alternatives --set javac /opt/jdk1.8.0_91/bin/javac
5.下载CS&解压
链接: https://pan.baidu.com/s/1li2yBVt5whNRBZP_rbZw8Q 提取码: v8by
6.cd 目录
7.启动
teamserver.bat 8.8.8.8 123456
8.8.8.8 server IP
123456 tools password