webshpere Application Server 安装(linux环境)

来源:互联网 发布:天刀捏脸数据男李易峰 编辑:程序博客网 时间:2024/06/11 09:41
 WebSphere App Server安装指南

1、下载was.cd.7000.trial.base.linux.ia32.tar.gz

2、安装
Redhat Linux--
[root@local was]# pwd
/opt/was
   tar zxvf was.cd.7000.trial.base.linux.ia32.tar.gz
   
运行/opt/was/launchpad.sh
   or
   install -options /opt/was/WAS/myresponsefile.txt -silent

进入管理控制台
https://localhost:9043/ibm/console/logon.jsp
admin/admin


安装样例JAX-WS Web Services Samples:
   1.  Stop WebSphere Application Server.
   2. Open a command window and issue the following command:
      install_root/samples/bin/install.sh -samples JaxWSServicesSamples  
      /opt/IBM/WebSphere/AppServer/samples/bin/install.sh -samples JaxWSServicesSamples  

[root@localhost bin]# pwd
/opt/IBM/WebSphere/AppServer/samples/bin
[root@localhost bin]# ./install.sh -samples DynamicQuery


   3. Restart WebSphere Application Server.
   4. Refresh the Samples Gallery.


样例:
http://192.168.13.128:9080/WSsamples
samples/admin

JAX-WS Web Services Samples
http://192.168.13.128:9080/wssamplesei/demo
   

Server name is:server1
Profile name is:AppSrv01
Profile home is:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01
Profile type is:default
Cell name is:localhostNode01Cell
Node name is:localhostNode01
Current encoding is:UTF-8
Server port number is:9080
IVTL0010I: Connecting to the localhost WebSphere Application Server on port: 9080
IVTL0015I: WebSphere Application Server localhost is running on port: 9080 for profile AppSrv01
Testing server using the following URL:http://localhost:9080/ivt/ivtserver?parm2=ivtservlet
IVTL0050I: Servlet engine verification status: Passed
Testing server using the following URL:http://localhost:9080/ivt/ivtserver?parm2=ivtAddition.jsp
IVTL0055I: JavaServer Pages files verification status: Passed
Testing server using the following URL:http://localhost:9080/ivt/ivtserver?parm2=ivtejb   
   



启动服务器:
[root@localhost bin]# pwd
/opt/IBM/WebSphere/AppServer/bin
[root@localhost bin]# ./startServer.sh server1




在 WebSphere Application Server 7.0 中创建 JMS 资源
1、打开 WebSphere Application Server 管理控制台,在左侧的导航面板中选择 Service Integration => Buses。
新建TestBus

2、在管理控制台的导航面板中,选择 Resources => JMS => JMS Providers => Queueconnection factories > Default messaging provider > QCF


JMS样例:
[root@localhost bin]# pwd
/opt/IBM/WebSphere/AppServer/bin
[root@localhost bin]# ./install.sh -samples AsynchBeans
WASX7357I: By request, this scripting client is not connected to anyserver process. Certain configuration and application operations willbe available in local mode.
WASX7303I: The following options are passed to the scriptingenvironment and are available as arguments that are stored in the argvvariable: "[-samples, AsynchBeans]"

---------------------------------------------------------------
              Command parameters                              
---------------------------------------------------------------
Command:                                                      
                        configure & install                  
Scope:                                                        
    cell                localhostNode01Cell                                 
    node                localhostNode01                                 
    server              server1                                
Samples:                                                      
                        AsynchBeans                          
---------------------------------------------------------------

************* Configure Asynch Beans Sample *******************

---------------------------------------------------------------
              Create J2C resource adapter                     
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
    server              server1                           
Resource adapter:                                             
    name                WebSphere Relational Resource Adapter  
---------------------------------------------------------------

SAMP INFO: The J2C resource adapter already exists.

---------------------------------------------------------------
              Create JAAS authentication alias                  
---------------------------------------------------------------
Scope:                                                        
    cell                localhostNode01Cell                              
Authentication alias:                                         
    alias               localhostNode01Cell/samples                             
    description         JAAS Alias for WebSphere Samples                              
    user ID             samples                                   
    password                                          
---------------------------------------------------------------

SAMP INFO: The localhostNode01Cell/samples alias already exists.

---------------------------------------------------------------
              Create JDBC provider                             
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
    server              server1                           
JDBC provider:                                                
    template            Derby JDBC Provider                          
    name                Derby JDBC Provider                          
---------------------------------------------------------------

SAMP INFO: The Derby JDBC Provider JDBC provider already exists.

---------------------------------------------------------------
              Create data source                              
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
    server              server1                           
JDBC provider:                                                
    name                Derby JDBC Provider                          
Datasource:                                                   
    template            Derby JDBC Driver DataSource                          
    name                WST_PriceGen                                
    JNDI                jdbc/samples/asynchbeans/wst/PriceGen                                
    description         Data source for the Asynchronous Beans Sample                                
    database name       ${APP_INSTALL_ROOT}/${CELL}/WebSphereTrader.ear/Databases/PRICEGEN                                
    auth alias          N_O_N_E                             
    connection attrs    upgrade=true                             
---------------------------------------------------------------


---------------------------------------------------------------
              Create connection factory                        
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
    server              server1                           
JDBC provider:                                                
    name                Derby JDBC Provider                          
Datasource:                                                   
    name                WST_PriceGen                                
Connection factory:                                          
    name                WST_PriceGen_CF                                
    auth mechanism      BASIC_PASSWORD                           
    auth alias          N_O_N_E                             
    interface           javax.resource.cci.ConnectionFactory                                   
---------------------------------------------------------------


---------------------------------------------------------------
              Create work manager                              
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
    server              server1                           
Work manager:                                                
    name                WebSphere Trader Sample Work Manager                                
    description         WebSphere Trader Sample Work Manager                                
    JNDI                wm/samples/asynchbeans/wst/WorkManager                                
    category            Asynchronous_Beans_Sample                           
    num alarm threads   15                     
    min threads         1                          
    max threads         5                          
    thread priority     5                     
    growable            true                          
    service names       security                        
---------------------------------------------------------------


---------------------------------------------------------------
              Create SI bus                                    
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
SI bus:                                                      
    name                localhostNode01SamplesBus                             
---------------------------------------------------------------


---------------------------------------------------------------
              Add SI bus member                                
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
    server              server1                           
SI bus:                                                      
    name                localhostNode01SamplesBus                                 
---------------------------------------------------------------


---------------------------------------------------------------
              Enable service                                   
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
    server              server1                           
Service:                                                      
    name                SIBService                           
---------------------------------------------------------------

SAMP INFO: The SIBService service is already enabled.

---------------------------------------------------------------
              Create SIB JMS connection factory               
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
Connection factory:                                          
    name                ABSample_PriceGen_TCF                             
    JNDI                jms/samples/asynchbeans/wst/TCF                             
    description         desc                             
    type                topic                             
    auth alias                                       
SI bus:                                                      
    name                localhostNode01SamplesBus                             
---------------------------------------------------------------


---------------------------------------------------------------
              Create SIB JMS topic                             
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
SIB JMS topic:                                                
    name                com.ibm.websphere.samples.asynchbeans.wstrader.pricegen.topic                              
    JNDI                jms/samples/asynchbeans/wst/PriceTopic                              
    description         desc                              
    SIB topic           ABSample_PriceGen_Topic                              
    SIB topic space     Default.Topic.Space                        
---------------------------------------------------------------


---------------------------------------------------------------
              Create SIB JMS topic                             
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
SIB JMS topic:                                                
    name                com.ibm.websphere.samples.asynchbeans.wstrader.pricehb.topic                              
    JNDI                jms/samples/asynchbeans/wst/PriceHBTopic                              
    description         desc                              
    SIB topic           ABSample_PriceGen_HeartBeat_Topic                              
    SIB topic space     Default.Topic.Space                        
---------------------------------------------------------------


---------------------------------------------------------------
              Create SIB JMS activation spec                  
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
Activation spec:                                             
    name                ABSample_ActivationSpec                    
    JNDI                eis/ABSample_ActivationSpec               
    destination JNDI    jms/samples/asynchbeans/wst/PriceHBTopic                              
    destination type    javax.jms.Topic                       
    auth alias          localhostNode01Cell/samples                             
SI bus:                                                      
    name                localhostNode01SamplesBus                             
---------------------------------------------------------------


SAMP INFO: The configure command for AsynchBeans completed successfully.

---------------------------------------------------------------
              Save                                             
---------------------------------------------------------------


SAMP INFO: The save command for AsynchBeans completed successfully.

************* Enable Startup Beans service ********************

---------------------------------------------------------------
              Enable service                                   
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
    server              server1                           
Service:                                                      
    name                StartupBeansService                           
---------------------------------------------------------------


************* Install Asynch Beans Samples ********************

---------------------------------------------------------------
              Install application                              
---------------------------------------------------------------
Scope:                                                        
    node                localhostNode01                              
    server              server1                           
EAR:                                                         
    name                /opt/IBM/WebSphere/AppServer/samples/lib/AsynchBeans/WebSphereTrader.ear                              
    application         WebSphereTrader                              
    destination         $(APP_INSTALL_ROOT)/$(CELL)         
    usedefaultbindings  true                                   
    noejbdeploy         true                                   
---------------------------------------------------------------

WASX7327I: Contents of was.policy file:
//
// WebSphere Application Security Policy for WebSphereTrader.ear
//

grant codeBase "file{application}"
{
  // Derby
  permission java.io.FilePermission "derby.properties", "read";
  
  // Property File Access
  permission java.lang.RuntimePermission "getClassLoader";
  permission java.io.FilePermission "${app.installed.path}${/}PriceGenerator.prop",  "read,write";
  permission java.io.FilePermission "${app.installed.path}${/}TickerStreamer.prop",  "read,write";
  permission java.io.FilePermission "${/}QIBM${/}ProdData${/}Java400${/}PriceGenerator.prop",  "read,write";
  permission java.io.FilePermission "${/}QIBM${/}ProdData${/}Java400${/}TickerStreamer.prop",  "read,write";

  // Common Jar Access
  permission java.io.FilePermission "${app.installed.path}${/}WebSphereTraderCommon.jar",  "read";
  permission java.io.FilePermission "${app.installed.path}${/}WebSphereTraderTickerStream.jar",  "read";
  permission java.io.FilePermission "${app.installed.path}${/}PriceGenerator.jar",  "read";
  permission java.io.FilePermission "${/}QIBM${/}ProdData${/}Java400${/}WebSphereTraderCommon.jar",  "read";
  permission java.io.FilePermission "${/}QIBM${/}ProdData${/}Java400${/}WebSphereTraderTickerStream.jar",  "read";
  permission java.io.FilePermission "${/}QIBM${/}ProdData${/}Java400${/}PriceGenerator.jar",  "read";

};

ADMA5016I: Installation of WebSphereTrader started.
ADMA5058I: Application and module versions are validated with versions of deployment targets.
ADMA5005I: The application WebSphereTrader is configured in the WebSphere Application Server repository.
ADMA5053I: The library references for the installed optional package are created.
ADMA5005I: The application WebSphereTrader is configured in the WebSphere Application Server repository.
ADMA5001I: The application binaries are saved in/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/Script11d8a25cabe/workspace/cells/localhostNode01Cell/applications/WebSphereTrader.ear/WebSphereTrader.ear
ADMA5005I: The application WebSphereTrader is configured in the WebSphere Application Server repository.
SECJ0400I: Successfully updated the application WebSphereTrader with the appContextIDForSecurity information.
ADMA5005I: The application WebSphereTrader is configured in the WebSphere Application Server repository.
CWSAD0040I: The application WebSphereTrader is configured in the Application Server repository.
ADMA5113I: Activation plan created successfully.
ADMA5011I: The cleanup of the temp directory for application WebSphereTrader is complete.
ADMA5013I: Application WebSphereTrader installed successfully.

SAMP INFO: The install command for AsynchBeans completed successfully.

---------------------------------------------------------------
              Save                                             
---------------------------------------------------------------


SAMP INFO: The save command for AsynchBeans completed successfully.

---------------------------------------------------------------
              Summary                                          
---------------------------------------------------------------
The following samples were configured and installed successfully:

    AsynchBeans

---------------------------------------------------------------
[root@localhost bin]#