温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

docker_weblogic

发布时间:2020-08-16 07:57:51 来源:ITPUB博客 阅读:169 作者:dq725 栏目:云计算

                                                                               
                                                                                
        ■    docker commit - weblogic                        create container → install jdk&weblogic → create new image of weblogic                                            
                                                                                
        ◎    component summer                                                                    
                                                                                
            sun_jdk1.6u39        weblogic1211        ubuntu18.04                                                    
                                                                                
        ◎    infra - OS                                                                    
                                                                                
            user01@ubuntu03:~$ docker image ls                                                                    
            REPOSITORY               TAG                 IMAGE ID            CREATED             SIZE                                                                    
            weblogic                 jdk1.6              5d6efe7cdc39        3 hours ago         2.22GB                                                                    
            tomcat7.0                jdk1.6              b051e1ac82a5        2 days ago          450MB                                                                    
            sshd                     dockerfile          5f2c90f429a8        3 days ago          227MB                                                                    
            sshd                     ubuntu              b4115c1affcd        4 days ago          288MB                                                                    
                                                                                
            user01@ubuntu03:~$ docker container run -d -v /home/user01/weblogic_jdk1.6/wls1211_generic.jar:/wls1211_generic.jar -v /home/user01/weblogic_jdk1.6/jdk-6u39-linux-x64.bin:/jdk-6u39-linux-x64.bin -P sshd:dockerfile                                                                    
            90cd30b16ab50eb1462c17988da16ebb92a1a71939b2a5dedf138c6d145a8631                                                                    
                                                                                
            user01@ubuntu03:~$ docker container ps                                                                    
            CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS                   NAMES                                                                    
            90cd30b16ab5        sshd:dockerfile     "/run.sh"           About a minute ago   Up About a minute   0.0.0.0:32773->22/tcp   vigorous_shockley                                                                    
                                                                                
            user01@ubuntu03:~$ docker container exec -it 90c /bin/bash                                                                    
            root@90cd30b16ab5:/#                                                                    
                                                                                
            root@90cd30b16ab5:/# cd /etc/apt                                                ★    变更镜像源                
            root@90cd30b16ab5:/etc/apt# ls                                                                    
            apt.conf.d  preferences.d  source.list  sources.list  sources.list.d  trusted.gpg.d                                                                    
            root@90cd30b16ab5:/etc/apt# mv sources.list sources.list.bak                                                                    
            root@90cd30b16ab5:/etc/apt# ls                                                                    
            apt.conf.d  preferences.d  source.list  sources.list.bak  sources.list.d  trusted.gpg.d                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            root@90cd30b16ab5:/etc/apt/sources.list.d# apt-get install {net-tools,openssh-server,inetutils-ping,vim}                                                                    
            Reading package lists... Done                                                                    
            Building dependency tree                                                                    
            Reading state information... Done                                                                    
            openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).                                                                    
            The following additional packages will be installed:                                                                    
              libgpm2 libpython3.6 netbase vim-common vim-runtime xxd                                                                    
            Suggested packages:                                                                    
              gpm ctags vim-doc vim-scripts                                                                    
            The following NEW packages will be installed:                                                                    
              inetutils-ping libgpm2 libpython3.6 net-tools netbase vim vim-common vim-runtime xxd                                                                    
            0 upgraded, 9 newly installed, 0 to remove and 15 not upgraded.                                                                    
            Need to get 8405 kB of archives.                                                                    
            After this operation, 38.5 MB of additional disk space will be used.                                                                    
            Do you want to continue? [Y/n] y                                                                    
            Get:1 http://mirrors.163.com/ubuntu bionic/main amd64 netbase all 5.4 [12.7 kB]                                                                    
            ......................................................................................................                                                                    
            ......................................................................................................                                                                    
            update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist                                                                    
            Processing triggers for libc-bin (2.27-3ubuntu1) ...                                                                    
                                                                                
            root@90cd30b16ab5:/etc/apt/sources.list.d# vi /etc/ssh/sshd_config                                                                    
             31 #LoginGraceTime 2m                                                                    
             32 #PermitRootLogin prohibit-password                                                                    
             33 PermitRootLogin yes                                                                    
             34 #StrictModes yes                                                                    
                                                                                
            root@90cd30b16ab5:~# passwd root                                                                    
            Enter new UNIX password:                                                                    
            Retype new UNIX password:                                                                    
            passwd: password updated successfully                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            root@90cd30b16ab5:/# ls -lh                                                                    
            total 1.1G                                                                    
            drwxr-xr-x   1 root root 4.0K Mar 14 08:43 bin                                                                    
            drwxr-xr-x   2 root root 4.0K Apr 24  2018 boot                                                                    
            drwxr-xr-x   5 root root  340 Mar 14 08:28 dev                                                                    
            drwxr-xr-x   1 root root 4.0K Mar 14 08:48 etc                                                                    
            drwxr-xr-x   2 root root 4.0K Apr 24  2018 home                                                                    
            -rwxrwxr-x   1 1000 1000  69M Mar 11 03:48 jdk-6u39-linux-x64.bin                                                                    
            drwxr-xr-x   1 root root 4.0K Mar 10 09:09 lib                                                                    
                                                                                
            root@90cd30b16ab5:/# ./jdk-6u39-linux-x64.bin                                                                    
            ...................................................................                                                                    
            For more information on what data Registration collects and                                                                    
            how it is managed and used, see:                                                                    
            http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html                                                                    
                                                                                
            Press Enter to continue.....                                                                    
                                                                                
            Done.                                                                    
                                                                                
            root@90cd30b16ab5:/# mv jdk1.6.0_39/ jdk                                                                    
            root@90cd30b16ab5:/# ls -lh                                                                    
            total 1.1G                                                                    
            drwxr-xr-x   1 root root 4.0K Mar 14 08:43 bin                                                                    
            drwxr-xr-x   2 root root 4.0K Apr 24  2018 boot                                                                    
            drwxr-xr-x   5 root root  340 Mar 14 08:28 dev                                                                    
            drwxr-xr-x   1 root root 4.0K Mar 14 08:48 etc                                                                    
            drwxr-xr-x   2 root root 4.0K Apr 24  2018 home                                                                    
            drwxr-xr-x   8 root root 4.0K Mar 14 08:51 jdk                                                                    
            -rwxrwxr-x   1 1000 1000  69M Mar 11 03:48 jdk-6u39-linux-x64.bin                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            root@90cd30b16ab5:/# vi /etc/profile                                                                    
              done                                                                    
              unset i                                                                    
            fi                                                                    
                                                                                
            export JAVA_HOME=/jdk                                                                    
            export PATH=$JAVA_HOME/bin:$PATH                                                                    
            export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar                                                                    
                                                                                
            root@90cd30b16ab5:/# /etc/init.d/ssh restart                                                                    
             * Restarting OpenBSD Secure Shell server sshd                                                                                                                                             user01@ubuntu03:~$                                                                    
                                                                                
            user01@ubuntu03:~$ docker container ps                                                                    
            CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES                                                                    
                                                                                
            user01@ubuntu03:~$ docker container start 90c                                                                    
            90c                                                                    
                                                                                
            user01@ubuntu03:~$ docker container ps                                                                    
            CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                   NAMES                                                                    
            90cd30b16ab5        sshd:dockerfile     "/run.sh"           31 minutes ago      Up 55 seconds       0.0.0.0:32774->22/tcp   vigorous_shockley                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            user01@ubuntu03:~$ ssh root@127.0.0.1 -p 32774                                                                    
            The authenticity of host '[127.0.0.1]:32774 ([127.0.0.1]:32774)' can't be established.                                                                    
            ECDSA key fingerprint is SHA256:8eSYhyVO17pqCHvfRZrp9yhTvVrhf3QB4TUQ2+J6YdE.                                                                    
            Are you sure you want to continue connecting (yes/no)? yes                                                                    
            Warning: Permanently added '[127.0.0.1]:32774' (ECDSA) to the list of known hosts.                                                                    
            root@127.0.0.1's password:                                                                    
            Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.4.0-142-generic x86_64)                                                                    
                                                                                
             * Documentation:  https://help.ubuntu.com                                                                    
             * Management:     https://landscape.canonical.com                                                                    
             * Support:        https://ubuntu.com/advantage                                                                    
            This system has been minimized by removing packages and content that are                                                                    
            not required on a system that users do not log into.                                                                    
                                                                                
            To restore this content, you can run the 'unminimize' command.                                                                    
                                                                                
            The programs included with the Ubuntu system are free software;                                                                    
            the exact distribution terms for each program are described in the                                                                    
            individual files in /usr/share/doc/*/copyright.                                                                    
                                                                                
            Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by                                                                    
            applicable law.                                                                    
                                                                                
            root@90cd30b16ab5:~#                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            root@90cd30b16ab5:/# pwd                                                                    
            /                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            root@90cd30b16ab5:/# ./jdk/bin/java -jar wls1211_generic.jar -mode=console                                                ★    install weblogic software                
            Extracting 0%....................................................................................................100%                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Welcome:                                                                    
            --------                                                                    
                                                                                
            This installer will guide you through the installation of WebLogic 12.1.1.0.                                                                    
            Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter [Exit][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Choose Middleware Home Directory:                                                                    
            ---------------------------------                                                                    
                                                                                
                "Middleware Home" = [Enter new value or use default                                                                    
            /root/Oracle/Middleware]                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter new Middleware Home OR [Exit][Previous][Next]> /opt/Middleware                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Choose Middleware Home Directory:                                                                    
            ---------------------------------                                                                    
                                                                                
                "Middleware Home" = [/opt/Middleware]                                                                    
                                                                                
            Use above value or select another option:                                                                    
                1 - Enter new Middleware Home                                                                    
                2 - Change to default [/root/Oracle/Middleware]                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter option number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Register for Security Updates:                                                                    
            ------------------------------                                                                    
                                                                                
            Provide your email address for security updates and  to initiate configuration manager.                                                                    
                                                                                
               1|Email:[]                                                                    
               2|Support Password:[]                                                                    
               3|Receive Security Update:[Yes]                                                                    
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]> 3                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Register for Security Updates:                                                                    
            ------------------------------                                                                    
                                                                                
            Provide your email address for security updates and  to initiate configuration manager.                                                                    
                                                                                
                "Receive Security Update:" = [Enter new value or use default "Yes"]                                                                    
                                                                                
                                                                                
                                                                                
            Enter [Yes][No]? no                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Register for Security Updates:                                                                    
            ------------------------------                                                                    
                                                                                
            Provide your email address for security updates and  to initiate configuration manager.                                                                    
                                                                                
                "Receive Security Update:" = [Enter new value or use default "Yes"]                                                                    
                                                                                
                                                                                
                ** Do you wish to bypass initiation of the configuration manager and                                                                    
                **  remain uninformed of critical security issues in your configuration?                                                                    
                                                                                
                                                                                
            Enter [Yes][No]? yes                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Register for Security Updates:                                                                    
            ------------------------------                                                                    
                                                                                
            Provide your email address for security updates and  to initiate configuration manager.                                                                    
                                                                                
               1|Email:[]                                                                    
               2|Support Password:[]                                                                    
               3|Receive Security Update:[No]                                                                    
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Register for Security Updates:                                                                    
            ------------------------------                                                                    
                                                                                
            Provide your email address for security updates and  to initiate configuration manager.                                                                    
                                                                                
               1|Email:[]                                                                    
               2|Support Password:[]                                                                    
               3|Receive Security Update:[No]                                                                    
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Choose Install Type:                                                                    
            --------------------                                                                    
                                                                                
            Select the type of installation you wish to perform.                                                                    
                                                                                
             ->1|Typical                                                                    
                |  Install the following product(s) and component(s):                                                                    
                | - WebLogic Server                                                                    
                | - Oracle Coherence                                                                    
                                                                                
               2|Custom                                                                    
                |  Choose software products and components to install and perform optional                                                                    
                |configuration.                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            JDK Selection (Any * indicates Oracle Supplied VM):                                                                    
            ---------------------------------------------------                                                                    
                                                                                
            JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.                                                                    
                                                                                
               1|Add Local Jdk                                                                    
               2|/jdk[x]                                                                    
                                                                                
                                                                                
                                                                                
               *Estimated size of installation:  589.7 MB                                                                    
                                                                                
                                                                                
            Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Choose Product Installation Directories:                                                                    
            ----------------------------------------                                                                    
                                                                                
            Middleware Home Directory: [/opt/Middleware]                                                                    
                                                                                
            Product Installation Directories:                                                                    
                                                                                
                                                                                
               1|WebLogic Server: [/opt/Middleware/wlserver_12.1]                                                                    
               2|Oracle Coherence: [/opt/Middleware/coherence_3.7]                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            The following Products and JDKs will be installed:                                                                    
            --------------------------------------------------                                                                    
                                                                                
                WebLogic Platform 12.1.1.0                                                                    
                |_____WebLogic Server                                                                    
                |    |_____Core Application Server                                                                    
                |    |_____Administration Console                                                                    
                |    |_____Configuration Wizard and Upgrade Framework                                                                    
                |    |_____Web 2.0 HTTP Pub-Sub Server                                                                    
                |    |_____WebLogic SCA                                                                    
                |    |_____WebLogic JDBC Drivers                                                                    
                |    |_____Third Party JDBC Drivers                                                                    
                |    |_____WebLogic Server Clients                                                                    
                |    |_____Xquery Support                                                                    
                |    |_____Evaluation Database                                                                    
                |_____Oracle Coherence                                                                    
                     |_____Coherence Product Files                                                                    
                                                                                
                *Estimated size of installation: 589.9 MB                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter [Exit][Previous][Next]>                                                                    
            Mar 14, 2019 9:06:00 AM java.util.prefs.FileSystemPreferences$2 run                                                                    
            INFO: Created user preferences directory.                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Installing files..                                                                    
                                                                                
            0%          25%          50%          75%          100%                                                                    
            [------------|------------|------------|------------]                                                                    
            [***************************************************]                                                                    
                                                                                
                                                                                
            Performing String Substitutions...                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Configuring OCM...                                                                    
                                                                                
            0%          25%          50%          75%          100%                                                                    
            [------------|------------|------------|------------]                                                                    
            [***************************************************]                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Installing Patches...                                                                    
                                                                                
            0%          25%          50%          75%          100%                                                                    
            [------------|------------|------------|------------]                                                                    
            [***************************************************]                                                                    
                                                                                
                                                                                
            Creating Domains...                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Installation Complete                                                                    
                                                                                
                                                                                
            Congratulations! Installation is complete.                                                                    
                                                                                
                                                                                
            Press [Enter] to continue or type [Exit]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->                                                                    
                                                                                
            Clean up process in progress ...                                                                    
                                                                                
                                                                                
            root@90cd30b16ab5:/# /opt/Middleware/wlserver_12.1/common/bin/config.sh -mode=console                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Welcome:                                                                    
            --------                                                                    
                                                                                
            Choose between creating and extending a domain. Based on your selection,                                                                    
            the Configuration Wizard guides you through the steps to generate a new or                                                                    
            extend an existing domain.                                                                    
                                                                                
             ->1|Create a new WebLogic domain                                                                    
                |    Create a WebLogic domain in your projects directory.                                                                    
                                                                                
               2|Extend an existing WebLogic domain                                                                    
                |    Use this option to add new components to an existing domain and modify     |configuration settings.                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Select Domain Source:                                                                    
            ---------------------                                                                    
                                                                                
            Select the source from which the domain will be created. You can create the                                                                    
            domain by selecting from the required components or by selecting from a                                                                    
            list of existing domain templates.                                                                    
                                                                                
             ->1|Choose Weblogic Platform components                                                                    
                |    You can choose the Weblogic component(s) that you want supported in                                                                    
                |your domain.                                                                    
                                                                                
               2|Choose custom template                                                                    
                |    Choose this option if you want to use an existing  template. This                                                                    
                |could be a custom created template using the Template Builder.                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Application Template Selection:                                                                    
            -------------------------------                                                                    
                                                                                
                                                                                
                                                                                
                Available Templates                                                                    
                |_____Basic WebLogic Server Domain - 12.1.1.0 [wlserver_12.1]x                                                                    
                |_____Basic WebLogic SIP Server Domain - 12.1.1.0 [wlserver_12.1] [2]                                                                    
                |_____WebLogic Advanced Web Services for JAX-RPC Extension - 12.1.1.0 [wlserver_12.1] [3]                                                                    
                |_____WebLogic Advanced Web Services for JAX-WS Extension - 12.1.1.0 [wlserver_12.1] [4]                                                                    
                                                                                
                                                                                
                                                                                
            Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Edit Domain Information:                                                                    
            ------------------------                                                                    
                                                                                
                |  Name  |    Value    |                                                                    
               _|________|_____________|                                                                    
               1| *Name: | base_domain |                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter value for "Name" OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Select the target domain directory for this domain:                                                                    
            ---------------------------------------------------                                                                    
                                                                                
                "Target Location" = [Enter new value or use default                                                                    
            /opt/Middleware/user_projects/domains]                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter new Target Location OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Configure Administrator User Name and Password:                                                                    
            -----------------------------------------------                                                                    
                                                                                
            Create a user to be assigned to the Administrator role. This user is the                                                                    
            default administrator used to start development mode servers.                                                                    
                                                                                
                |          Name           |                  Value                  |                                                                    
               _|_________________________|_________________________________________|                                                                    
               1|         *Name:          |                weblogic                 |                                                                    
               2|     *User password:     |                                         |                                                                    
               3| *Confirm user password: |                                         |                                                                    
               4|      Description:       | This user is the default administrator. |                                                                    
                                                                                
            Use above value or select another option:                                                                    
                1 - Modify "Name"                                                                    
                2 - Modify "User password"                                                                    
                3 - Modify "Confirm user password"                                                                    
                4 - Modify "Description"                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter option number to select OR [Exit][Previous][Next]> 3                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Configure Administrator User Name and Password:                                                                    
            -----------------------------------------------                                                                    
                                                                                
            Create a user to be assigned to the Administrator role. This user is the                                                                    
            default administrator used to start development mode servers.                                                                    
                                                                                
                "*Confirm user password:" = []                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter new *Confirm user password: OR [Exit][Reset][Accept]> weblogic_test                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Configure Administrator User Name and Password:                                                                    
            -----------------------------------------------                                                                    
                                                                                
            Create a user to be assigned to the Administrator role. This user is the                                                                    
            default administrator used to start development mode servers.                                                                    
                                                                                
                |          Name           |                  Value                  |                                                                    
               _|_________________________|_________________________________________|                                                                    
               1|         *Name:          |                weblogic                 |                                                                    
               2|     *User password:     |                                         |                                                                    
               3| *Confirm user password: |              *************              |                                                                    
               4|      Description:       | This user is the default administrator. |                                                                    
                                                                                
            Use above value or select another option:                                                                    
                1 - Modify "Name"                                                                    
                2 - Modify "User password"                                                                    
                3 - Modify "Confirm user password"                                                                    
                4 - Modify "Description"                                                                    
                5 - Discard Changes                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter option number to select OR [Exit][Previous][Next]> 2                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Configure Administrator User Name and Password:                                                                    
            -----------------------------------------------                                                                    
                                                                                
            Create a user to be assigned to the Administrator role. This user is the                                                                    
            default administrator used to start development mode servers.                                                                    
                                                                                
                "*User password:" = []                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter new *User password: OR [Exit][Reset][Accept]> weblogic_test                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Configure Administrator User Name and Password:                                                                    
            -----------------------------------------------                                                                    
                                                                                
            Create a user to be assigned to the Administrator role. This user is the                                                                    
            default administrator used to start development mode servers.                                                                    
                                                                                
                |          Name           |                  Value                  |                                                                    
               _|_________________________|_________________________________________|                                                                    
               1|         *Name:          |                weblogic                 |                                                                    
               2|     *User password:     |              *************              |                                                                    
               3| *Confirm user password: |              *************              |                                                                    
               4|      Description:       | This user is the default administrator. |                                                                    
                                                                                
            Use above value or select another option:                                                                    
                1 - Modify "Name"                                                                    
                2 - Modify "User password"                                                                    
                3 - Modify "Confirm user password"                                                                    
                4 - Modify "Description"                                                                    
                5 - Discard Changes                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter option number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Domain Mode Configuration:                                                                    
            --------------------------                                                                    
                                                                                
            Enable Development or Production Mode for this domain.                                                                    
                                                                                
             ->1|Development Mode                                                                    
                                                                                
               2|Production Mode                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]> 2                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Java SDK Selection:                                                                    
            -------------------                                                                    
                                                                                
             ->1|Sun SDK 1.6.0_39 @ /jdk                                                                    
               2|Other Java SDK                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Select Optional Configuration:                                                                    
            ------------------------------                                                                    
                                                                                
               1|Administration Server [ ]                                                                    
               2|Managed Servers, Clusters and Machines [ ]                                                                    
               3|RDBMS Security Store [ ]                                                                    
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]> 1                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Select Optional Configuration:                                                                    
            ------------------------------                                                                    
                                                                                
               1|Administration Server [x]                                                                    
               2|Managed Servers, Clusters and Machines [ ]                                                                    
               3|RDBMS Security Store [ ]                                                                    
                                                                                
                                                                                
                                                                                
            Enter index number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Configure the Administration Server:                                                                    
            ------------------------------------                                                                    
                                                                                
            Each WebLogic Server domain must have one Administration Server. The                                                                    
            Administration Server is used to perform administrative tasks.                                                                    
                                                                                
                |       Name       |        Value        |                                                                    
               _|__________________|_____________________|                                                                    
               1|      *Name:      |     AdminServer     |                                                                    
               2| *Listen address: | All Local Addresses |                                                                    
               3|   Listen port:   |        7001         |                                                                    
               4| SSL listen port: |         N/A         |                                                                    
               5|   SSL enabled:   |        false        |                                                                    
                                                                                
            Use above value or select another option:                                                                    
                1 - Modify "Name"                                                                    
                2 - Modify "Listen address"                                                                    
                3 - Modify "Listen port"                                                                    
                4 - Modify "SSL enabled"                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
            Enter option number to select OR [Exit][Previous][Next]>                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            <------------------- Fusion Middleware Configuration Wizard ------------------>                                                                    
                                                                                
            Creating Domain...                                                                    
                                                                                
            0%          25%          50%          75%          100%                                                                    
            [------------|------------|------------|------------]                                                                    
            [***************************************************]                                                                    
                                                                                
                                                                                
            **** Domain Created Successfully! ****                                                                    
                                                                                
                                                                                
            root@90cd30b16ab5:/opt/Middleware/user_projects/domains/base_domain# mkdir -p servers/AdminServer/security                                                                    
                                                                                
            root@90cd30b16ab5:/opt/Middleware/user_projects/domains/base_domain# cd servers/AdminServer/security/                                                                    
                                                                                
            root@90cd30b16ab5:/opt/Middleware/user_projects/domains/base_domain/servers/AdminServer/security# pwd                                                                    
            /opt/Middleware/user_projects/domains/base_domain/servers/AdminServer/security                                                                    
                                                                                
            root@90cd30b16ab5:/opt/Middleware/user_projects/domains/base_domain/servers/AdminServer/security# touch boot.properties                                                                    
                                                                                
            root@90cd30b16ab5:/opt/Middleware/user_projects/domains/base_domain/servers/AdminServer/security# vi boot.properties                                                                    
                                                                                
            root@90cd30b16ab5:/opt/Middleware/user_projects/domains/base_domain/servers/AdminServer/security# cat boot.properties                                                                    
            username=weblogic                                                                    
            password=weblogic_test                                                                    
                                                                                
            root@90cd30b16ab5:~# cat /opt/Middleware/user_projects/domains/base_domain/bin/startWebLogic.sh                                                        ★    可暂时不做        
            # Exit this script only if we have been told to exit.                                                                    
                                                                                
            if [ "${doExitFlag}" = "true" ] ; then                                                                    
                    exit                                                                    
            fi                                                                    
                                                                                
            WLS_USER="weblogic"                                                                    
            export WLS_USER                                                                    
            WLS_PW="weblogic_test"                                                                    
            export WLS_PW                                                                    
                                                                                
                                                                                
            root@90cd30b16ab5:~# cat /opt/Middleware/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties                                                                    
            #Thu Mar 14 09:43:18 GMT 2019                                                                    
            password={AES}7orVFXQxgtB2ApuXO7QuEbrtl25H3Wg9oYVhqlR1rR8\=                                                                    
            username={AES}R0KP4C18pvBvlhfmMhp8ulTcgpxnGWOLolE0xx46lSI\=                                                                    
                                                                                
            root@90cd30b16ab5:~# exit                                                                    
            logout                                                                    
            Connection to 127.0.0.1 closed.                                                                    
            user01@ubuntu03:~$ docker container ps                                                                    
            CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                   NAMES                                                                    
            90cd30b16ab5        sshd:dockerfile     "/run.sh"           About an hour ago   Up About an hour    0.0.0.0:32774->22/tcp   vigorous_shockley                                                                    
                                                                                
            user01@ubuntu03:~$ docker container commit 90c weblogic:jdk1.6v1                                                                    
            sha256:b48ec41077a9ac59bf78442888d87f97f444c0caa42823048039510561f1c1a5                                                                    
            user01@ubuntu03:~$ docker image ls                                                                    
            REPOSITORY               TAG                 IMAGE ID            CREATED             SIZE                                                                    
            weblogic                 jdk1.6v1            b48ec41077a9        14 seconds ago      1.15GB                                                                    
            tomcat7.0                jdk1.6              b051e1ac82a5        2 days ago          450MB                                                                    
            sshd                     dockerfile          5f2c90f429a8        4 days ago          227MB                                                                    
                                                                                
            user01@ubuntu03:~$ docker container run -d -p 39118:7001 -P weblogic:jdk1.6v1                                                                    
            4321891a612717db18b684d9926bbd429885a433344d44d1886dd5d8fa3e5422                                                                    
            user01@ubuntu03:~$ docker container ps                                                                    
            CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                                            NAMES                                                                    
            4321891a6127        weblogic:jdk1.6v1   "/run.sh"           35 seconds ago      Up 34 seconds       0.0.0.0:32775->22/tcp, 0.0.0.0:39118->7001/tcp   nervous_shockley                                                                    
                                                                                
            user01@ubuntu03:~$ docker container exec -it 432 /bin/bash                                                                    
                                                                                
            root@4321891a6127:/# /opt/Middleware/user_projects/domains/base_domain/startWebLogic.sh &                                                                    
            [1] 18                                                                    
            root@4321891a6127:/# .                                                                    
            .                                                                    
            JAVA Memory arguments: -Xms256m -Xmx512m  -XX:MaxPermSize=256m                                                                    
            .                                                                    
            WLS Start Mode=Production                                                                    
            .                                                                    
            CLASSPATH=/opt/Middleware/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/Middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/jdk/lib/tools.jar:/opt/Middleware/wlserver_12.1/server/lib/weblogic_sp.jar:/opt/Middleware/wlserver_12.1/server/lib/weblogic.jar:/opt/Middleware/modules/features/weblogic.server.modules_12.1.1.0.jar:/opt/Middleware/wlserver_12.1/server/lib/webservices.jar:/opt/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/opt/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/opt/Middleware/wlserver_12.1/common/derby/lib/derbyclient.jar:/opt/Middleware/wlserver_12.1/server/lib/xqrl.jar                                                                    
            .                                                                    
            PATH=/opt/Middleware/wlserver_12.1/server/bin:/opt/Middleware/modules/org.apache.ant_1.7.1/bin:/jdk/jre/bin:/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin                                                                    
            .                                                                    
            ***************************************************                                                                    
            *  To start WebLogic Server, use a username and   *                                                                    
            *  password assigned to an admin-level user.  For *                                                                    
            *  server administration, use the WebLogic Server *                                                                    
            *  console at http://hostname:port/console        *                                                                    
            ***************************************************                                                                    
            .................................................................................                                                                    
            .................................................................................                                                                    
            <Mar 14, 2019 9:56:50 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>                                                                    
            <Mar 14, 2019 9:56:50 AM GMT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.17.0.2:7001 for protocols iiop, t3, ldap, snmp, http.>                                                                    
            <Mar 14, 2019 9:56:50 AM GMT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>                                                                    
            <Mar 14, 2019 9:56:50 AM GMT> <Notice> <WebLogicServer> <BEA-000329> <Started the WebLogic Server Administration Server "AdminServer" for domain "base_domain" running in production mode.>                                                                    
            <Mar 14, 2019 9:56:50 AM GMT> <Warning> <Server> <BEA-002611> <The hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 127.0.0.1.>                                                                    
            <Mar 14, 2019 9:56:50 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>                                                                    
            <Mar 14, 2019 9:56:50 AM GMT> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>                                                                    
            Mar 14, 2019 9:56:52 AM com.sun.xml.ws.model.JavaMethodImpl freeze                                                                    
            WARNING: Input Action on WSDL operation PreparedOperation and @Action on its associated Web Method preparedOperation did not match and will cause problems in dispatching the requests                                                                    
            Mar 14, 2019 9:56:52 AM com.sun.xml.ws.model.JavaMethodImpl freeze                                                                    
            WARNING: Input Action on WSDL operation AbortedOperation and @Action on its associated Web Method abortedOperation did not match and will cause problems in dispatching the requests                                                                    
            Mar 14, 2019 9:56:52 AM com.sun.xml.ws.model.JavaMethodImpl freeze                                                                    
            WARNING: Input Action on WSDL operation ReadOnlyOperation and @Action on its associated Web Method readOnlyOperation did not match and will cause problems in dispatching the requests                                                                    
            Mar 14, 2019 9:56:52 AM com.sun.xml.ws.model.JavaMethodImpl freeze                                                                    
            WARNING: Input Action on WSDL operation CommittedOperation and @Action on its associated Web Method committedOperation did not match and will cause problems in dispatching the requests                                                                    
            Mar 14, 2019 9:56:52 AM com.sun.xml.ws.model.JavaMethodImpl freeze                                                                    
            WARNING: Input Action on WSDL operation ReplayOperation and @Action on its associated Web Method replayOperation did not match and will cause problems in dispatching the requests                                                                    
            Mar 14, 2019 9:56:52 AM com.sun.xml.ws.model.JavaMethodImpl freeze                                                                    
            WARNING: Input Action on WSDL operation RegisterOperation and @Action on its associated Web Method registerOperation did not match and will cause problems in dispatching the requests                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
            root@4321891a6127:/# ps -ef                                                                    
            UID         PID   PPID  C STIME TTY          TIME CMD                                                                    
            root          1      0  0 09:54 ?        00:00:00 /bin/bash /run.sh                                                                    
            root          8      1  0 09:54 ?        00:00:00 /usr/sbin/sshd -D                                                                    
            root          9      0  0 09:56 pts/0    00:00:00 /bin/bash                                                                    
            root         18      9  0 09:56 pts/0    00:00:00 /bin/sh /opt/Middleware/user_projects/domains/base_domain/startWebLogic.sh                                                                    
            root         19     18  0 09:56 pts/0    00:00:00 /bin/sh /opt/Middleware/user_projects/domains/base_domain/bin/startWebLogic.sh                                                                    
            root         57     19 17 09:56 pts/0    00:00:22 /jdk/bin/java -server -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/opt/Middleware/wlserver_                                                                    
            root         88      9  0 09:58 pts/0    00:00:00 ps -ef                                                                    
                                                                                
            http://192.168.152.135:39118/console                                                                    

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI