`
coolerbaosi
  • 浏览: 727946 次
文章分类
社区版块
存档分类
最新评论

第四部分 为Cassandra1.0.x准备java运行环境

 
阅读更多

译者注:本文是在Itanium64位RedhatAS5下测试的环境下测试,其实在其他和RedHat兼容的系统比如CentOS也是一样的可行的,译者在32为CentOS6同样成功的完成了任务。


Installing Sun JRE on RedHat Systems

在RedHat系统上安装SunJRE

原文

DataStax recommends installing the mostrecently released version of the Oracle Sun Java Runtime Environment (JRE),also referred to as the Java Virtual Machine (JVM). Versions earlier than1.6.0_19 should not be used.

译文

DataStax推荐安装最新版本的Oracle Sun JRE,或是称作Java虚拟机,1.6.0_19以前的版本不能使用,必须是1.6.0_19及之后的JRE版本才能正常运行Cassandra1.0.x。

原文

The rpm packages install the OpenJDK JavaRuntime Environment (JRE) instead of the Oracle Sun JRE. After installing usingthe rpm packaged releases, configure your operating system to use the OracleSun JRE instead of OpenJDK.

译文

操作系统初始安装时默认安装OpenJDK,所以我们必须安装Oracle Sun 的JDK,并取代原来的OpenJDK。

原文

Check which version of the java runtimeenvironment your system is using. If your system is using the OpenJDK RuntimeEnvironment, you will need to change it to use the Oracle Sun JRE.

$ java -version

译文

确认你得系统运行的jre是哪个版本,假如你的系统使用的OpenJDK运行时,那么必须重新安装Oracle Sun 的JDK取代它。

$java –version

(译者注:看看版本是否符合,如果已经符合就跳过安装jre步骤)

原文

Go to the Oracle JavaRuntime Environment Download Page, accept the license agreement, anddownload the Linux x64-RPM Installer or Linuxx86-RPM Installer (depending on yourplatform).

译文

到Oracle Java运行环境下载页面

http://www.oracle.com/technetwork/java/javase/downloads/jre-6u25-download-346243.html

下载Sun Jdk,选择合适的版本,注意下载合适的rpm包,根据你的机器的CPU芯片和硬件选择,比如是32的系统,那么你下载的64为是安装不了的

原文

Go to the directory where you downloadedthe JRE package, and change the permissions so the file is executable. Forexample:

$ cd /tmp

$ chmod a+x jre-6u25-linux-x64-rpm.bin

译文

到你所下载的jre目录,改变目录的权限,以便授权给其他用户使用。

$ cd /tmp

$ chmod a+x jre-6u25-linux-x64-rpm.bin

原文

Extract and run the rpm file. For example:

$ sudo ./jre-6u25-linux-x64-rpm.bin

The rpm installs the JRE into /usr/java/.

译文

解压并运行rpm,比如:

$ sudo ./jre-6u25-linux-x64-rpm.bin

Rpm包将java运行环境安装到了系统的/usr/java/目录

原文

Configure your system so that it is usingthe Oracle Sun JRE instead of the OpenJDK JRE. Use the alternatives command toadd a symbolic link to the Oracle Sun JRE installation. For example:

$ sudo alternatives --install /usr/bin/java java /usr/java/jre1.6.0_25/bin/java 20000

译文

配置系统默认的JRE,用OraclrSunJRE代替OpenJDK,使用alternatives命令配置系统的jdk把运行环境转移带OracleSun jre,例如:

$ sudo alternatives --install /usr/bin/java java /usr/java/jre1.6.0_25/bin/java 20000

原文

Make sure your system is now using thecorrect JRE. For example:

$ java -version

译文

再次确认你得jre版本

$ java –version

原文

If the OpenJDK JRE is still being used, usethe alternatives command to switch it. For example:

$ sudo alternatives --config java

There are 2 programs which provide 'java'.

Selection Command

-----------------------------------------------

1/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

*+ 2 /usr/java/jre1.6.0_25/bin/java

Enter to keep the current selection[+], or typeselection number: 2

译文

假如OpenJDK仍然在使用中,那么可以通过alternatives命令进行切换,比如:

$ sudo alternatives --config java

There are 2 programs which provide 'java'.

Selection Command

-----------------------------------------------

1/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

*+ 2 /usr/java/jre1.6.0_25/bin/java

Enter to keep the current selection[+], or typeselection number: 2

译者注:这时候应该是切换过来使用Oracle sun 的JRE了。



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics