美文网首页
weblogic部署Linux

weblogic部署Linux

作者: 我心悠然 | 来源:发表于2021-03-16 14:45 被阅读0次

    记录一下weblogic在Linux上部署的操作;
    第一步,下载对应weblogic版本;(我下载的是14版本fmw_14.1.1.0.0_wls_lite_quick_generic.jar)
    第二步,上传jar包到Linux对应安装目录
    第三步,在Linux上建立对应的用户账号(因为weblogic不能通过root用户启动)

    1、adduser weblogic ;
    2、passwd weblogic; 
    3、chown -R weblogic:weblogic weblogic/; 
    4、chmod 770 weblogic/
    

    第四步,执行命令(java -jar fmw_14.1.1.0.0_wls_lite_quick_generic.jar)注意:JDK一定要1.8及以上,且配置了环境变量
    第五步,进入weblogic目录下,创建create_domain.rsp文件

    read template from "/data/canace/weblogic/wls1411/wlserver/common/templates/wls/wls.jar";
    set JavaHome "/usr/local/java";
    set ServerStartMode "prod";
    find Server "AdminServer" as AdminServer;
    set AdminServer.ListenAddress "";
    set AdminServer.ListenPort "7001";
    set AdminServer.SSL.Enabled "true";
    set AdminServer.SSL.ListenPort "7002";
    //Create Machine
    //create Machine "base" as Machinename;
    //use templates default weblogic user
    find User "weblogic" as u1;
    set u1.password "weblogic";
    write domain to "/data/canace/weblogic/wls1411/user_projects/domains/base_domain/";
    // The domain name will be "demo-domain"
    close template;
    

    第六步,进入weblogic/wls1411/wlserver/common/bin目录下,执行命令./config.sh -mode=silent -silent_script={安装目录}/weblogic/create_domain.rsp -logfile={安装目录}/weblogic/create_domain.log
    第七步,进入/weblogic/wls1411/user_projects/domains/base_domain目录下,创建boot.properties文件,输入内容:

    username=weblogic
    password=weblogic
    

    第八步,进入/weblogic/wls1411/user_projects/domains/base_domain/servers/AdminServer/security目录下,创建boot.properties文件,内容与上面一致
    第九步,回到/weblogic/wls1411/user_projects/domains/base_domain目录,执行启动命令:./startWebLogic.sh
    出现如图提示,则说明启动成功

    image.png
    然后打开网址http://192.168.1.222:7001/console,注:请关闭防火墙

    曾经遇到问题:
    Authentication denied: Boot identity not valid. The user name or password or both from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
    解决方法:
    参照:https://blog.csdn.net/guoyimu/article/details/104514605

    相关文章

      网友评论

          本文标题:weblogic部署Linux

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