美文网首页
websphere的docker环境搭建

websphere的docker环境搭建

作者: 梨捉阳笆 | 来源:发表于2018-05-16 15:10 被阅读325次

    参考镜像

    https://hub.docker.com/r/amanly/websphere_8_5_5/

    执行如下命令拉动websphere的镜像到本地

    
    docker pull amanly/websphere_8_5_5
    
    

    查看已安装镜像:

    
    docker images
    
    
    
    amanly/websphere_8_5_5        latest              364745c3090e        2 years ago         3.041 GB
    
    

    启动websphere的docker容器:

    
    docker run -i -t -p 28000:28000 -p 28001:28001 -v /Users/lihongjun/Documents/incoming/websphere:/tmpfromhost amanly/websphere_8_5_5 bash
    
    

    查看运行的容器

    docker ps

    
    CONTAINER ID        IMAGE                    COMMAND             CREATED             STATUS              PORTS                                  NAMES
    
    83f2d9a7148c        amanly/websphere_8_5_5   "bash"              4 days ago          Up 2 days           0.0.0.0:28000-28001->28000-28001/tcp   pensive_turing
    
    

    启动WAS

    • 连接容器的shell
    
    docker exec -it pensive_turing  bash
    
    
    • 启动was
    
    cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/
    
    ./startManager.sh
    cd ../../AppSrv01/bin/
    ./startNode.sh
    
    

    启动结果

    
    ./startManager.sh
    
    ADMU0116I: Tool information is being logged in file
    
               /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/startServer.log
    
    ADMU0128I: Starting tool with the Dmgr01 profile
    
    ADMU3100I: Reading configuration for server: dmgr
    
    ADMU3200I: Server launched. Waiting for initialization status.
    
    ADMU3000I: Server dmgr open for e-business; process id is 142
    
    
    
    ./startNode.sh
    
    ADMU0116I: Tool information is being logged in file
    
               /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/nodeagent/startServer.log
    
    ADMU0128I: Starting tool with the AppSrv01 profile
    
    ADMU3100I: Reading configuration for server: nodeagent
    
    ADMU3200I: Server launched. Waiting for initialization status.
    
    ADMU3000I: Server nodeagent open for e-business; process id is 552
    
    

    登录WAS控制台

    http://localhost:28000/ibm/console

    相关文章

      网友评论

          本文标题:websphere的docker环境搭建

          本文链接:https://www.haomeiwen.com/subject/gwipdftx.html