要先裝java
可參考insall oracle jdk at linux(CentOS)

  1. 下載glassfish
  2. 解壓縮到/usr/glassfish

    1
    unzip glassfish4.zip
  3. 開啟glassfish server

    1
    2
    cd /usr/local/glassfish4/glassfish/bin
    ./asadmin start-domain domain1