Skip to content

Instantly share code, notes, and snippets.

@ktx2207
Last active August 29, 2015 14:07
Show Gist options
  • Save ktx2207/2619ca87cfde4c05d2e8 to your computer and use it in GitHub Desktop.
Save ktx2207/2619ca87cfde4c05d2e8 to your computer and use it in GitHub Desktop.
EC2にOracleのJREを適用する

EC2にOracleのJREを適用する

OracleのJREをインストール

$sudo rpm -ivh jre-7u67-linux-x64.rpm

/etc/profile.dに下記のjava.shを配置

export JAVA_HOME=/usr/java/jre1.7.0_67
export PATH=$JAVA_HOME/bin:$PATH

sourceコマンドで環境変数を有効化

$ source /etc/profile.d/java.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment