6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWS + GlassFish 4.1を構築メモ

Last updated at Posted at 2015-01-24

これは何?

  • awsのamazon linuxの上にglassfish4.1を構築した際の手順メモ

Javaの環境を整える

標準ではOpenJDKなのでOracle公式からJDK1.8.XX(最新)をインストールする。

  1. sudo rpm -ivh jdk-8u31-linux-x64.rpm
  2. sudo alternatives --install /usr/bin/java java /usr/java/default/bin/java 180031 ※ Javaの実行の優先をOracleJDKに変える
  3. java -version ※ OracleのJDKが入った事を確認

GlassFish4.1のダウンロード/インストール

  1. glassfishのダウンロード先を確認。
  2. cd /opt/
  3. sudo wget http://dlc.sun.com.edgesuite.net/glassfish/4.1/release/glassfish-4.1.zip
  4. sudo unzip glassfish-4.1.zip
  5. sudo useradd -s /usr/sbin/nologin -d /opt/glassfish4 glassfish ※ユーザ追加
  6. sudo chown -R glassfish: /opt/glassfish4 ※ユーザ追加
  7. cd /opt/glassfish4
  8. sudo bin/asadmin start-domain 
  9. sudo bin/asadmin change-admin-password
  10. sudo bin/asadmin enable-secure-admin
  11. sudo bin/asadmin restart-domain

その他

  • ドメインの状態を確認する。 sudo bin/asadmin list-domains
6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?