Help us understand the problem. What is going on with this article?

AWS + GlassFish 4.1を構築メモ

More than 5 years have passed since last update.


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



  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が入った事を確認


  1. glassfishのダウンロード先を確認。
  2. cd /opt/
  3. sudo wget
  4. sudo unzip
  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
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away