Skip to content

Instantly share code, notes, and snippets.

@ponsuke0531
Last active May 18, 2017 01:32
Show Gist options
  • Save ponsuke0531/bb1efa800384084a4e5479e966f9ac84 to your computer and use it in GitHub Desktop.
Save ponsuke0531/bb1efa800384084a4e5479e966f9ac84 to your computer and use it in GitHub Desktop.
macOS SierraにHomebrewでGlassFish4をインストールする ref: http://qiita.com/ponsuke0531/items/611039314a2e85d02f2b
$ brew update
$ brew install glassfish
==> Using the sandbox
==> Downloading http://download.java.net/glassfish/4.1.2/release/glassfish-4.1.2.zip
######################################################################## 100.0%
==> Caveats
The home of GlassFish Application Server 4 is:
/usr/local/opt/glassfish/libexec
You may want to add the following to your .bash_profile:
export GLASSFISH_HOME=/usr/local/opt/glassfish/libexec
export PATH=${PATH}:${GLASSFISH_HOME}/bin
Note: The support scripts used by GlassFish Application Server 4
are *NOT* linked to bin.
==> Summary
🍺 /usr/local/Cellar/glassfish/4.1.2: 1,005 files, 126.6MB, built in 1 minute 30 seconds
$ sudo /usr/local/Cellar/glassfish/4.1.2/libexec/glassfish/bin/asadmin
Use "exit" to exit and "help" for online help.
asadmin> start-domain domain1
Waiting for domain1 to start .........................................
Successfully started the domain : domain1
domain Location: /usr/local/Cellar/glassfish/4.1.2/libexec/glassfish/domains/domain1
Log File: /usr/local/Cellar/glassfish/4.1.2/libexec/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
asadmin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment