Portál AbcLinuxu, 1. května 2025 21:45

Sun Java ES 5 - instalace Application Serveru

24.5.2007 14:51 | Přečteno: 1587× | Sun Java ES | Výběrový blog

   V instalaci JES je aplikační server(AS) Sun Java System Application Server Enterprise Edition konkrétně ve verzi 8.2 . Je to komfortní kontejner J2EE pro EJB, JSP a servlety. Je po DS druhým základním kamenem JESu (s určitým omezením se dá použít i Java Web Server z JES), poskytuje běhové prostředí většině ostatních aplikací JES (nebo jejich částem). Které technologie, standardy podporuje a další podrobnosti viz. zde. Já se opět soustředím na instalaci a rozběhání AS.

Zároveň s AS se nám nainstalují další komponenty nutné pro jeho běh:

a já si k nim přidám ještě Monitoring Console která slouží ke sledování funkce a výkonosti většiny komponent JES

O instalčním prgramu JES jsem již psal, vrhnu se tedy rovnou na popis instalace. V souboru AS.state budu mít zaznamenané ručně zadané hodnoty pro příští, přípdaně Vaše použití.

Instalace

Poznámka:

#######################################################################
[root@sjes ~]# cd /root/install/Linux_x86/ && ./installer -nodisplay -saveState /root/install/AS.state

   Welcome to the Sun Java(TM) Enterprise System; serious software made
   simple...
...
...
...
   Have you read, and do you accept, all of the terms of the preceding Software
   License Agreement [No] {"<" goes back, "!" exits}? yes
Component Products on this Host
----------------------------------------

The following component products are detected on this system. In case of
bundled products they can be upgraded when they are selected for installation,
others will appear disabled, "* *", in the following Choose Software Components
Main Menu.

Sun Java(TM) System Directory Server 6 Core Server v6.0.4 - Complete,
Sun Java(TM) System Directory Preparation Tool  v6.3.3.13 - Complete,
Sun Java(TM) System Directory Service Control Center v6.0.32 - Complete,
Sun Java(TM) System Directory Server 6 Command-Line Utilities v6.0.32 -
Complete,

   <Press ENTER to continue>


Choose Software Components - Main Menu
-------------------------------
Note: "*  *" indicates that the selection is disabled

 *  *  Directory Preparation Tool 6.4
[ ] 2. Web Server 7.0
[ ] 3. Web Proxy Server 4.0.4
[ ] 4. Directory Server Enterprise Edition 6.0
[ ] 5. Access Manager 7.1
[ ] 6. High Availability Session Store 4.4
[ ] 7. Message Queue 3.7 UR1
[ ] 8. Application Server Enterprise Edition 8.2
[ ] 9. Service Registry 3.1
[ ] 10. Portal Server Secure Remote Access 7.1
[ ] 11. Monitoring Console 1.0
[ ] 12. Portal Server 7.1
[ ] 13. Java DB 10.1
[ ] 14. All Shared Components

   Enter a comma separated list of products to install, or press R to refresh
   the list [] {"<" goes back, "!" exits}: 8,11

Choose Software Components - Confirm Choices
--------------------------------------------

Based on product dependencies for your selections, the installer will install:

 *  *  High Availability Session Store 4.4
 *  *  Message Queue 3.7 UR1
[X] 8. Application Server Enterprise Edition 8.2
[X] 11. Monitoring Console 1.0
 *  *  Java DB 10.1



   Press "Enter" to Continue or Enter a comma separated list of products to
   deselect. Enter "-" with product number to deselect a product (for eg. -5
   will deselect product number 5). To return to the component selection list,
   press "r". [1] {"<" goes back, "!" exits} ENTER

Component Selection - Selected Product "High Availability Session Store 4.4 "
-----------------------------------------------------------------------------


Component Selection - Selected Product "Message Queue 3.7 UR1"
--------------------------------------------------------------


Component Selection - Selected Product "Application Server Enterprise Edition
8.2 "

-----------------------------------------------------------------------------------

*[X] 1. Domain Administration Server
*[ ] 2. Application Server Node Agent
*[X] 3. Command Line Administration Tool
*[ ] 4. Load Balancing Plugin
*[X] 5. Sample Applications

   Enter a comma separated list of components to install (or A to install all )
   [A] {"<" goes back, "!" exits} 1,3,5

*[X] 1. Domain Administration Server
*[X] 3. Command Line Administration Tool
*[X] 5. Sample Applications


   Press "Enter" to Continue or Enter a comma separated list of products to
   deselect. Enter "-" with product number to deselect a product (for eg. -5
   will deselect product number 5). To return to the component selection list,
   press "r". [1] {"<" goes back, "!" exits} ENTER


Component Selection - Selected Product "Monitoring Console 1.0 "
----------------------------------------------------------------


Component Selection - Selected Product "Java DB 10.1"
-----------------------------------------------------

** * Java DB Client
** * Java DB Server

   Enter a comma separated list of components to install (or A to install all )
   [A] {"<" goes back, "!" exits} ENTER

** * Java DB Client
** * Java DB Server


   Press "Enter" to Continue or Enter a comma separated list of products to
   deselect. Enter "-" with product number to deselect a product (for eg. -5
   will deselect product number 5). To return to the component selection list,
   press "r". [1] {"<" goes back, "!" exits} ENTER

   Install multilingual package(s) for all selected components [Yes] {"<" goes
   back, "!" exits}: yes



Installation Directories
------------------------

Enter the name of the target installation directory for each product:


   Application Server [/opt/sun/appserver] {"<" goes back, "!" exits}: ENTER
   Data and Server Configuration: [/var/opt/sun/appserver] {"<" goes back, "!"
   exits}: ENTER


Checking System Status

    Available disk space...        : Checking .... OK          

    Memory installed...            : Checking .... OK          

    Swap space installed...        : Checking .... OK          

    Operating system patches...    : Checking .... OK          

    Operating system resources...  : Checking .... OK          


System ready for installation          



   Enter 1 to continue [1] {"<" goes back, "!" exits} 1




Screen for selecting Type of Configuration

1. Configure Now - Selectively override defaults or express through

2. Configure Later - Manually configure following installation


   Select Type of Configuration [1] {"<" goes back, "!" exits} 2
Ready to Install
----------------
The following components will be installed.

Product: Java Enterprise System 5
Uninstall Location: /var/sadm/prod/sun-entsys5
Space Required: 221.82 MB
----------------------------------------------
        Sun Java(TM) System Message Queue 3.7 UR1
        Sun Java(TM) System High Availability Session Store 4.4
        Java DB
           Java DB Server
           Java DB Client
        Sun Java(TM) System Application Server Enterprise Edition 8.2
           Command Line Administration Tool
           Domain Administration Server
           Application Server Node Agent
           Sample Applications
        Sun Java(TM) System Monitoring Console 1.0


1. Install
2. Start Over
3. Exit Installation

   What would you like to do [1] {"<" goes back, "!" exits}? 1

Java Enterprise System 5
|-1%--------------25%-----------------50%-----------------75%--------------100%|


Installation Complete


Software installation has completed successfully. You can view the installation
summary and log by using the choices below. Summary and log files are available
in /var/opt/sun/install/logs/.



Your next step is to perform the postinstallation configuration and
verification tasks documented in the Postinstallation Configuration and Startup
Chapter of the Sun Java(TM) Enterprise System Installation Guide. See: http:
//docs.sun.com/doc/819-4891.

   Enter 1 to view installation summary and Enter 2 to view installation logs
   [1] {"!" exits} !
In order to notify you of potential updates, we need to confirm an internet connection. Do you want to proceed [Y/N] : N
[root@sjes Linux_x86]#
#######################################################################

Protože jsme zvolili instalaci s ručním nastavením musíme postupovat podle popisu v Sun Java(TM) Enterprise System Installation Guide konkrétně v kapitole Application Server Postinstallation Configuration. Pojďme na to.

#######################################################################
[root@sjes ~]# 
[root@sjes ~]# 
[root@sjes ~]# cd /root/install/Linux_x86/Product/application_svr/Tools
[root@sjes Tools]# 
[root@sjes Tools]# # ponecháme defaults podle zvyklostí JES
[root@sjes Tools]# ./postInstall /opt/sun/appserver /var/opt/sun/appserver /opt/sun/mfwk
Starting the Token replacements
 AS_DATA_CONFIG_DIR does not exist, creating /var/opt/sun/appserver
Finished the Token replacements
Copying common.properties to samples
Registering with JESMF
Warning : Remember that in a JESMF Linux installation you should
          disable the loopback interface in JESMF configuration, or
          simply disable the ipv6 interfaces of your system.
          For more information on this, see the documentation and
          the release notes.
[root@sjes Tools]# 
[root@sjes Tools]#
#######################################################################

A je to .... AS je nainstalovaný. Další krok je vytvoření instance AS (stejně jako DS je stavěný na běh více instancí z jedné instalace). Pomocníkem nám bude administrační program AS /opt/sun/appserver/bin/asadmin

#######################################################################
[root@sjes ~]# 
[root@sjes ~]# # vytvoříme si doménu AS (Díky za nástin postupu)
[root@sjes ~]# /opt/sun/appserver/bin/asadmin create-domain --adminport 4849 --adminuser asadmin --instanceport 80 --domainproperties domain.jmxPort=8686:http.ssl.port=443 --savemasterpassword=true sjes.example.com
Please enter the admin password>asinstancepwd
Please enter the admin password again>asinstancepwd
Please enter the master password>asmasterpwd
Please enter the master password again>asmasterpwd
Using default port 7676 for JMS.
Using default port 3700 for IIOP.
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Domain sjes.example.com created.
[root@sjes ~]# 
[root@sjes ~]# 
[root@sjes ~]# # povedlo se
[root@sjes ~]# # zkusíme doménu nastartovat
[root@sjes ~]# /opt/sun/appserver/bin/asadmin start-domain --user asadmin sjes.example.com
Starting Domain sjes.example.com, please wait.
Log redirected to /var/opt/sun/appserver/domains/sjes.example.com/logs/server.log.
Please enter the admin password>
Domain sjes.example.com started.
[root@sjes ~]# 
#######################################################################

Teď si odkontrolujeme funkčnost instalace. Nejdřív zkontrolujte nastaveni FW.Musíte mít přístupné porty 80 (http), 443 (https) a 4849 (AS admin console). Na otestování nám bude stačit libovolný GUI prohlížeč. Namiřte ho na toto http://sjes.example.com. Pokud je vše v pořádku uvidíte strohou úvodní obrazovku AS. Pokud tomu tak neni prohlédněte logy v adresáři /var/opt/sun/appserver/domains/sjes.example.com/logs/.

To je pro dnešek vše. Příště doladíme instalaci AS a budeme se moci přesunout na další části JES.

       

Hodnocení: 88 %

        špatnédobré        

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

Komentáře

Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře. , Tisk

Vložit další komentář

finc avatar 24.5.2007 16:27 finc | skóre: 8 | blog: Finc | Kolín
Rozbalit Rozbalit vše Re: Sun Java ES 5 - instalace Application Serveru
Odpovědět | Sbalit | Link | Blokovat | Admin
Proc nenainstalovat verzi 9? Ja tedy nejsem zadny prebornik v linuxu, ale instalace je naprosto trivialni. Stahnu instalator od SUNu a nainstaluji. Po spusteni serveru staci http://localhost:4848/ do admin konsole a zbyle veci nastavit zde.

P.S. Osobne se tesim na glassfish v3, pry by mel jiz nativne podporovat (ve webovem kontejneru PHP a dalsi skriptovaci jazyky). Diky tomu odpada dalsi sluzba, kterou musim resit :)
Kdo Vam dal pravo ty lidi urazet? A kdo ti dal pravo cumet z okna, ty kr.vo!
24.5.2007 16:43 Zuzkins | skóre: 2 | Praha
Rozbalit Rozbalit vše Re: Sun Java ES 5 - instalace Application Serveru
doporocuju podivat se sem a dole pod clankem na to video z JavaOne, je tam napsano presne od kdy do kdy je to zajimavy. Bude to mozna pecka az V3 vyjde
Chceš realizovat své sny? Probuď se!
29.5.2007 17:12 Jarda
Rozbalit Rozbalit vše Re: Sun Java ES 5 - instalace Application Serveru
verze 9 je zatim jen Platform Edition. Soucasti JES je Enterprise Edition. Oproti PE ma nektere fce navic...
24.3.2020 15:58 Dana
Rozbalit Rozbalit vše Re: Sun Java ES 5 - instalace Application Serveru
Odpovědět | Sbalit | Link | Blokovat | Admin
Если вы хотите найти последнее приложение mod apk бесплатно, вы можете обратиться по адресу https://gamehottrend.com/, здесь вы можете найти нужные вам приложения.

Založit nové vláknoNahoru

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.