官术网_书友最值得收藏!

Installing the GlassFish server

Download GlassFish from https://glassfish.java.net/download.html. GlassFish comes in two flavors: Web Profile and Full Platform. Web Profile is like Tomcat, which does not include EJB support. So download the Full Platform.

Unzip the downloaded file in a folder. The default port of the GlassFish server is 8080. If you want to change that, open glassfish/domains/domain1/config/domain.xml in a text editor (you could open it in Eclipse too, using the File | Open File menu option) and look for 8080. You should see it in one of the <network-listener>. Change the port if you want to (which may be the case if some other application is already using that port).

To start the server, run the startserv script (.bat or .sh depending on the OS you use). Once the server has started, open a web browser and browse to http://localhost:8080. You should see a page like the following:

Figure 1.8: The default Glassfish web application

This page is located at glassfish/domains/domain1/docroot/index.html. Click on the go to the Administration Console link in the page to open the GlassFish administrator (see the following screenshot):

Figure 1.9: The Glassfish administrator


For details on administrating the GlassFish server, refer to 
https://javaee.github.io/glassfish/doc/5.0/administration-guide.pdf.

To stop the GlassFish Server, run the stopserv script in the glassfish/bin folder.

主站蜘蛛池模板: 民县| 景泰县| 景德镇市| 陇川县| 青铜峡市| 余姚市| 安多县| 都江堰市| 双牌县| 绥棱县| 林甸县| 阿鲁科尔沁旗| 宁城县| 铅山县| 仙桃市| 磐安县| 长岛县| 旺苍县| 武穴市| 肥城市| 海城市| 泽普县| 宜兰市| 涞源县| 武威市| 读书| 巨野县| 凭祥市| 竹北市| 五华县| 上虞市| 辽中县| 林西县| 原平市| 房山区| 永登县| 丰都县| 彭山县| 富宁县| 临武县| 汉阴县|