WebLogic11g- create a domain (Domain) and basic

WebLogic11g- create a domain (Domain) and basic configuration

 

A Domain (the Domain)

    Weblogic domain is publishing location applications, built after weblogic domain, you can create a data source corresponding item in the application domain, in general, a domain corresponding to an application, if you want to use the same weblogic publish multiple applications, then multiple domains can be created in the same weblogic, into the respective application domain below. Of course, a plurality of applications can be deployed (Domain simply in a domain: is a logic management unit, Domain contains everything below weblogic application server, application server weblogic started, stopped in the domain are managed in units of of)

Second, create a domain

 (Using the root user login command: #su Weblogic weblogic user will switch to the user.)

1, into the home folder, or use #ls ll command to view the file folder information, find wlserver_10.3 folder (not the same path, to find their own), the startup file weblogic domain configuration stored in the directory

 

2, use the command $ cd wlserver_10.3 into the directory using the command $ ls folder under the file information listed.

 

3, into the Common Catalog

 

4, go to the bin directory under the Common, find .config.sh file

 

5, use the command ./config.sh start weblogic service domain configuration files, startup files after successful initialization, choose to create a domain type, first create the default type: "Create a new service domain." Next Enter

 

6, select the type of domain created where we choose "Generate a domain configured automatically to support the following products", enter 1 Enter (or next carriage return, do not select the digital input Enter the default first)

 

 7, select the application template type, next carriage return

 

 8, domin specify the name of the domain, develop domain name or use the default and then next Enter

 

The following are specified domain

 

Then enter the desired name

 

 

9, the specified storage path domin domain, the default values ​​next default input Enter

 

10, set the weblogic user password to log in weblogic console

      选择1,修改用户名,然后选择2,设置密码,选择3确认密码

     注:密码长度大于8位,且必须包含数字类型,若输入的密码信息不符合规则,  则返回错误的提示信息

     60050:用户’weblogic’的密码无效

     60045:密码必须至少为8位字母数字字符,且至少包含一个数字或特殊字符

11、设置域的模式配置: 1:开发模式    2:生产模式  此处设置为:开发模式

 

 默认回车

12、设置绑定jdk

1)、绑定默认jdk版本 

2)、绑定自己安装的jdk版本:选择2,输入自己安装的JDK路径回车,next回车即可

 输入自己的jdk路径

13、选择服务类型:默认选择”管理服务器”

 

 第一步默认1,回车即可;第二步一样

 

14、服务器参数设置:服务名、监听地址、监听端口等信息,此处只是演示不做修改,使用默认值,(一般会按照自己需求修改)直接next,回车

 

 

 

 

15、开始创建服务域

 

16、服务域创建成功后,

启动weblogic服务。使用weblogic用户登录,在根目录下,执行如下命令:

                  cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin(此处为你自己路径)

                 将目录切换到bin目录下,执行./startWebLogic.sh命令启动

                 

       二、web应用的部署与发布

1、Weblogic服务启动成功后,打开浏览器输入地址:http://localhost:7001/console回车      

 

 

 

2、输入用户名和密码回车进入服务控制台,(之前设置的用户名和密码)

 

 

 

 

3、单击主页面上的部署或配置应用程序进行程序的部署与发布

 

 

 

  4、单击安装按钮开始安装程序,页面跳转到程序(应用)选择页,进行应用选择,选择完成后单击下一步。

 

 

 

 

5、应用部署方式选择,选择完成后进行下一步

 

 

 

 

6、应用程序服务程序可选设置,可不做修改,进入下一步或完成步骤

7、应用程序安装完成

8、选择已安装完成的应用,单击启动按钮

 

 

 

9、启动完成后,打开浏览器,进行应用的访问,在地址栏输入访问地址,回车,若页面跳转到相关界面,则表示当前应用已部署成功.

Guess you like

Origin www.cnblogs.com/yeluowuti/p/12047660.html