- 复制文件到指定文件路径
- cp -rf /home/leehongee/LeeHonGee/jdk1.7.0_45 /usr/lib/jvm
- 创建文件夹 mkdir jvm
- 修改环境变量
sudo gedit /etc/profile
添加
#set java environment
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_45
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
5.配置默认JDK版本
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_45 /bin/java 300
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_45 /bin/javac 300
执行代码
sudo update-alternatives --config java
6.测试
java -version
-----------------创建文件夹------------
sudo mkdir jvm
-----------------解压tar文件------
# tar xzvf git-1.7.2.3.tar.gz
# cd git-1.7.2.3
# ./configure -prefix=/usr/local/git
# make install
--------------安装SVN----------------------
http://subversion.tigris.org/downloads/subversion-1.6.6.tar.gz
sudo apt-get install subversion
WebRTC 配置环境