データセンターでインストールも楽なGlassFish Enterprise Server
そういえば、ふと紹介していなかったのを思い出したので、
今日はコンソールベースでGlassFishをインストールする方法を紹介します。
Sun GlassFish Enterprise Server(Sun Java System Application Server)の
インストーラはデータセンターでインストールする時(GUIが使えない環境)も
インストールがもかんたんです。
インストール時に-consoleオプションを指定してください。
> ./sjsas_ee-9_1_02-solaris-sparc-ml.bin -console Checking available disk space… Checking Java(TM) 2 Runtime Environment… Extracting Java(TM) 2 Runtime Environment files… Extracting installation files… Launching Java(TM) 2 Runtime Environment… Java Accessibility Bridge for GNOME loaded. You are running the installation program for Sun Java System Application Server with HADB. This program asks you to supply configuration preference settings that it uses to install the server. The installation program consists of one or more selections that provide you with information and let you enter preferences that determine how Sun Java System Application Server with HADB is installed and configured. When you are presented with the following question, the installation process pauses to allow you to read the information that has been presented. When you are ready, press Enter to continue. …………………………………….. Please contact Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, California 95054 if you have questions. If you have read and accept all the terms of the entire Software License Agreement, answer ‘yes’, and the installation will continue. If you do not accept all the terms of the Software License Agreement, answer ‘no’, and the installation program will end without installing the product. Have you read, and do you accept, all of the terms of the preceding Software License Agreement [no] {“<" goes back, "!" exits}? Yes The Sun Java System Application Server with HADB components will be installed in the following directory, which is referred to as the “Installation Directory”.To use this directory, press only the Enter key. To use a different directory, type in the full path of the directory to use followed by pressing the Enter key. Installation Directory [/opt/SUNWappserver] {“<" goes back, "!" exits}: /opt/SUNWappserver The directory “/opt/SUNWappserver” does not exist. Do you want to create it now or choose another directory? 1. Create Directory 2. Choose New Enter the number corresponding to your choice [1] {“<" goes back, "!" exits} 1 Please choose components. Do you want to install Node Agent [yes] {“<" goes back, "!" exits}? yes Do you want to install High Availability Database Server [no] {“<" goes back, “!” exits}? yes Do you want to install Load Balancing Plugin [no] {“<" goes back, "!" exits}? no Do you want to install Domain Administration Server [yes] {“<" goes back, “!” exits}? yes Do you want to install Sample Applications [yes] {“<" goes back, "!" exits}? yes Java Configuration The Sun Java System Application Server requires a Java 2 SDK. Please provide the path to a Java 2 SDK 5.0 or greater. 1. Install Java 2 SDK (5.0) 2. Reuse existing Java 2 SDK 3. Exit What would you like to do [1] {“<" goes back, "!" exits}? 1 Supply the admin user’s password and override any of the other initial configuration settings as necessary. Admin User [admin] {“<" goes back, "!" exits}: admin Admin User’s Password (8 chars minimum):[********] Re-enter Password: [********] Master Password will be used as SSL certificate database password. Master Password (8 chars minimum):[********] Re-enter Master Password:[********] Admin Port [4848] {“<" goes back, "!" exits}: HTTP Port [8080] {“<" goes back, "!" exits}: HTTPS Port [8181] {“<" goes back, "!" exits}: Please choose installation options. Do you want to enable Updatecenter client [yes] {“<" goes back, "!" exits}? yes Do you want to upgrade from previous Application Server version [no] {“<" goes back, “!” exits}? no Checking disk space… The following items for the product Sun Java System Application Server with HADB will be installed: Product: Sun Java System Application Server with HADB Location: /opt/SUNWappserver Space Required: 462.04 MB —————————————————– Java 2 SDK, Standard Edition 5.0 Uninstall Sun Java System Message Queue 4.1 Application Server Sample Applications High Availability Database Server High Availability Database Administration Client Startup Ready to Install 1. Install Now 2. Start Over 3. Exit Installation What would you like to do [1] {“<" goes back, "!" exits}? 1 Installing Sun Java System Application Server with HADB |-1%————–25%—————–50%—————–75%————–100%| Installation Successful. Next Steps: 1. Access the About Application Server 9.1 welcome page at: file:///opt/SUNWappserver/docs/about.html 2. Start the Application Server by executing: /optSUNWappserver/bin/asadmin start-domain –user admin domain1 3. Start the Admin Console: https://localhost:4848 4. Access sample applications: http://localhost:8080/samples/index.html Please press Enter/Return key to exit the installation program. {“!” exits} Deleting temporary files… > |
また、https://glassfish.dev.java.netからダウンロードしたGlassFishのインストールも
同様にコンソールオプションを使用してインストールができます。
> java -Xmx256m -jar glassfish-installer-v2ur2-b04-darwin-ml.jar -console COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 1. Definitions. 1.1. Contributor. means each individual or entity that creates or contributes to the creation of Modifications. 1.2. Contributor Version. means the combination of the Original Software, prior Modifications used by a Contributor (if any), and the Modifications made by that particular Contributor. 1.3. Covered Software. means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof. 1.4. Executable. means the Covered Software in any form other than Source Code. (省略)…………………………………………………………………………………………….. ………………………………………………………………………………………………………… ………………………………………………………………………………………………………… ………………………………………………………………………………………………………… As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module.? An independent module is a module which is not derived from or based on this library.? If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so.? If you do not wish to do so, delete this exception statement from your version. Accept or Decline? [A,D,a,d] a glassfish glassfish/docs glassfish/docs/css glassfish/docs/de glassfish/docs/de/css glassfish/docs/de/figures glassfish/docs/de/graphics glassfish/docs/es glassfish/docs/es/css glassfish/docs/es/figures (省略)…………….. ………………………… ………………………… ………………………… glassfish/updatecenter/LICENSE.txt glassfish/updatecenter/README glassfish/updatecenter/registry/SYSTEM/local.xml installation complete |
Entry filed under: Application Server/GlassFish. Tags: データセンター, GlassFish.