ITPub博客

首页 > 数据库 > Oracle > weblogic详细搭建攻略

weblogic详细搭建攻略

原创 Oracle 作者:wanglinghua0907 时间:2024-01-24 18:35:29 0 删除 编辑

1.下载jdk

https://www.oracle.com/java/technologies/javase-java-archive-javase6-downloads.html#jdk-6u45-oth-JPR


下载jdk-6u45-linux-x64.bin

Linux x86 Linux x64 Linux x64 Solaris x86 Solaris x86 (SVR4 package) ÇnIarİç YAZI 68.47 MB 65.69 MB 68.75 MB 68.58 MB 120 MB jdk-6u45-linux-i586.bin l—' jdk-6u45-linux-x64-rpm.bin jdk-6u45-linux-x64.bin jdk-6u45-solaris-i586.sh l—' jdk-6u45-solaris-i586.tar.Z idk-61 ıd5-çnIariç-x6d_çh


2.配置防火墙和SELINUX

Redhat7操作系统配置防火墙,开放应用端口,例如7001;

# firewall-cmd --permanent --add-port=7001/tcp

# firewall-cmd --reload

 

关闭selinux:

编辑/etc/selinux/config 文件

[root@DBServer1 ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled要改过来
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

3.安装用户创建

创建weblogic用户

groupadd weblogic

useradd -g weblogic weblogic

 

passwd weblogic   ----修改oracle用户密码

weblogic

 

创建软件目录

mkdir /weblogic

chown weblogic:weblogic /weblogic/

 

4./etc/hosts修改

注意:如果主机名是localhost(建议不要使用这个默认值),则不需要修改此文件

 

vi /etc/hosts 

主机ip      主机名 (增加这行)

 

查询ip:ifconfig -a

查询主机名:uname -n

192.168.30.85  weblogic1

 

把中间件文件,java包通过ctr上传到/weblogic,在标签页中上传,在主页中解压

主页中:su – weblogic

pwd

 STFP中:cd /weblogic

         lcd E:\MEDIA\Weblogic

         lcd /weblogic

         put wls1036_generic.jar

         put jdk-6u45-linux-x64.bin


赋权

chmod 777 wls1036_generic.jar

chmod 777 jdk-6u45-linux-x64.bin


5.解压jdk

[weblogic@19c1 soft]$ ./jdk-6u45-linux-x64.bin 

inflating inflating inflating creating inflating creating : inflating : inflating : inflating : inflating : inflating : inflating : inflating : Creating Creating Creating Creating Creating Creating Creating Creating Done. jdkl jdkl jdkl jdkl jdkl jdkl jdkl jdkl jdkl .6. ø_45 /THIRDPARTYLICENSEREADME. txt jdkl .6.ø_45/src.zip jdkl .6. ø_45/README . html jdkl . 6.0_45/ include/ jdkl .6.Ø_45/inc1ude/jni.h jdkl .6.Ø_45/inc1ude/1inux/ jdkl .6.Ø_45/inc1ude/1inux/ jawt_md . h jdkl .6.Ø_45/inc1ude/1inux/ jni_md . h j dkl .6.ø_45/inc1ude/ jdkl .6.Ø_45/inc1ude/jawt.h jdkl .6.Ø_45/inc1ude/ jdwpTransport . h j dkl h jdkl .6 .ø_45/COPYRIGHT .6.e_45/jre/1ib/rt . jar .6.e_45/jre/1ib/jsse.jar .6 . e_45/jre/1ib/charsets. jar .6 . e_45/1ib/t001s. jar . 6 . e_45/jre/1ib/ext/10ca1edata. jar .6 . e_45/jre/1ib/p1ugin . jar .6 . e_45/jre/1ib/ javaws . jar .6 . e_45/jre/1ib/dep10y. jar


6.安装weblogic中间件

weblogic用户执行安装:

cd /weblogic

 

打开Xmanager-passice      

export DISPLAY=10.3.104.31:0.0(xxx.xxx.xxx.xxx为Windows主机的IP 0.0为Xmanager-passice的端口)

 

java -jar wls1036_generic.jar

softl$ cd [weblogic@19cI weblogicl$ java -jar /webIogic/soft/wIs1036_generic.jar•


下一步

Welcome 0 刁 C 「 E 0 「 VebL 10 , 6.0 clicking ESRbutton


下一步:选择中间件路径

Oracle Installer • WebLogic 10.3.6.0 Choose Middleware Home Directory Home —here type Home C)RACL€•


下一步:取消对勾,不收到oracle的安全升级通知

OrKle • Web Lo.c Register for Security Updates pour to initiate 10.360 My Oracle SuoM to My Oracle SuoM


打上对勾,继续continue

• WebLc.9ic Register for Security Updates for securib' uod.te. to initiate this m«hine h" 10160 ORACLE click the and click to of in or this


下一步:选使用Typical

Oracle Installer - WebLogic 10.3.6.0 Choose Install Type Select the type of installation you wish to perform. @Typical Install the following product(s) and component(s): • WebLogic Server • Oracle Coherence O Custom x ORACLE Choose software products and components to install and perform optional configuration. Ezit


下一步:选择jdk

如果下载的1.6.0的jdk没有自己出现,记得配环境变量,还是不行,就browse自己添加

export JAVA_HOME=/weblogic/jdk1.8.0_11 

export PATH=$JAVA_HOME/bin:$PATH

Or ■ は い 'DK Selection 怛 灯 引 「 ト 0 を will 0 新 を い 0 00 物 を 、 ・ be リ d 第 引 「 : 物 新 9 ・ 、 リ b 靆 は 曲 賃 0 d 「 - W ・ わ [ 09 に 】 0.3. 0 第 は n d' に を イ じ - ー 6 ー リ 」 も 当 ッ 物 - 0 っ 0 」 6 ー 物 : 4 を 卩 を 5 を 宿 0 ノ 第 豊 」 匚 コ


下一步:确认一下weblogic中间件的安装路径

冖 〔 第 こ 〔 第 当 町 を 」 0t2 三 ( 一 を 三 : 三 ) 0 ト 一 00- 一 0 E 0- 、 亡 , 亨 、 と 0 ま 上 p 「 い 当 60 も を 40 新 」 0 に と 0 0 を 」 と - p も コ こ コ 、 を - ー ー 」 に 0 を = 電 を u - ご コ を よ ど ー ー こ 、 て ! 0


下一步:确认组件无误,点击下一步安装

… Ood


下一步:安装完毕后,点击DONE开始安装域

Oracle I nstalter Installation Complete Click the Done button to exit the installer. - WebLogic 10.3.6.0 ORAc1-e• ORACLE Message Congratulations' Installation is complete. Run Quickstart

7.创建域

上面done结束,开始创建域,选择getting started with

platform • QUICKSTART These OuckStart links are provtaed to Yelp rt y•a.' StMea with installed Oracle will also find useful shalcuts in the Start Wnu, to create domains. Start rela'.mh OuCk9art, ORACLE with Serv«• 103.6 stater to Wet* ' M Serve' , S&ct to fix to 103.6 8.1, 9.1, 9.2 10.0 Access doctZ'H1tatbn


下一步:点击create a new weblogic doamin

Fusion Middleware Configuration Wizard Welcome @ Create a new WebLogic domain Create a WebLogic domain in pur projects directory. O Extend an existing WebLogic domain ORAcce• Use this option to add new components to an existing domain and modify configuration settings. Next


下一步:默认选择,下一步就可以 

Fusion Middleware Configuration Wizard Select Domain Source ormcL€• @Generate a domain configured to support the following products: Basic WebLogic SIP Server Domain - 10_3.60 Wserver—IO.31 Web Services for JAX—RPC Extension - WebLogiC Atvanced Web Services rorJAX-WS Extension - 10.3.6.0 IWserver_IO.3J O Base this domain on an existing tenwlate


下一步:输入域名称(域名称可以根据应用名称来填写,方便识别),以及安装路径

Fusion Middleware Configuration Wizard Specify Domain Name and Location 0RAc1-e• Enter the name and location for the domain: hisLdomain Domain name: Domain location: Jæblogic dom ains


下一步:自定义控制台用户和密码

weblogic

weblogic#123

Fusion Middleware Configuration Wizard Configure Administrator User Name and Password C)RACL-e• Discard Changes *Nam e: •user passw.rd: •Confirm user password: Description: eblogic This user is the default adm inistrator.


下一步:选择production mode模式(为了提高性能,生产环境必须选择production mode),

选择刚才已经解压好的java包

Fusion Middleware Configuration Wizard Configure Server Start Mode and JOK ORACLE Before putting your domain into production, make sure that the production environment is secure. For more information, see the topic 'Securing a Production Environment' in the WebLogic Server documentation. Lo c Domain Startu Mode O Mode Utilize boot.properties for usernam e and passmrd and poll for applications to deploy. Sun JOK recommended for better startup perform ance during iterative dev elopmenl, @ hoduction Mode Require the entry Of a username and password and do not poll for applications to deploy. WebLogic JROCkit JOK recommended fo better runtim e performance and management. OK Selection @ JD KS Sun SDK O Other JDK Location:


下一步: 勾选安装Adminstration Server服务

Fusion Middleware Configuration Wizard Select Optional Configuration Administration Server Modify Settings O Managed Servers, Clusters and Machines Add or Delete Modify Settings O RDBMS Security Store Modify Settings ormcce•


下一步:选择默认端口7001,下一步,开始安装

Fusion Middleware Configuration Wizard Configure the Administration Server ORACLE' Discard Changes •Name: •Listen address: Listen port: SSL listen pom SSL enabled: Adm insetvd All Local Addresses 7001


create

Configuration Summary Domain Summ Summ View Deployment Fusion Middleware Configuration Wizard ORACLE' Click on an item in the Domain Summary pane on the left to inspect its attributes in the Details pane below You can make limited adjustm entS by clicking Previous to retum to a prior panel. If everything is satisfactory, click Create. his_domain (i.eblogic/Middlet0øre/user_projects —J Serger AdminSetver Details Attribute Name Description Author Location Value Basic WebLogic Sewer Domain Create a basic WebLogiC Server dom ain without installing sample Oracle Corporation /weblogicfMiddlenre /Wserger_10.3/commonftemplates/domai previous Create


安装域完成

Fusion Middleware Configuration Wizard Creating Domain h owes s : prep Extracting Domain Contents.. Creating Dom ain Security Inform ation... Saving the Domain Information.. Storing Domain Inform atiotm,. String Substituting Dom ain Files... Performing OS Specific Tasks... Domain Created Successfully! Domain Location: in URL: http://19c1:7001 oæ,acce• C)RACL-e•


8.启动weblogic中间件

添加密码文件

生成servers目录

通过cd /weblogic/Middleware/user_projects/domains/<域名称>/bin

./startWeblogic启动过控制台以后,输入weblogic的用户和密码,就会生成servers目录,关闭后添加密码配置文件

e/wlserver_le . 3/ server/lib/weblogic. policy -Dweblogic. ProductionM ogic/Midd1eware/w1server_10.3/server -DwebLogic. home: /web10gic/Mid alse -DwLw.testCons01e=fa1se -DwLw. logErrorsToCons01e=fa1se -Dwebl( ath : /weblogic 'Middleware/ patch_ocp371 'profi les, 'default/ sysext _man <1111Ju1 4, 2023 1 PM EDT* <1111Securitp <1111Disa le this check, specify -DwebLogic. security. allowCryptoJDefaultJCEV 4, 2023 1 PM EDT > disable this change, specify .:Ju1 4, 2823 1 PM EDT* m Sun Microsystems Inc . > 4, 2823 1 PM EDT> 4, 2823 1 PM EDT* BEA-egaga6><1111Chan -meblogic. secu rity. allowCryptoJDefau BEA-BBd377* <1111Inf0><1111Management>BEA-egea65><1111Gett Enter username to boot WebLogic server :


创建密码配置文件

cd /weblogic/Middleware/user_projects/domains/<域名称>/servers/AdminServer


mkdir  security

cd security

vi boot.properties

username=weblogic

password=weblogic#123


免密启动

安装成功后,启动控制台

cd /weblogic/Middleware/user_projects/domains/<域名称>/bin

nohup ./startWebLogic.sh &


观察后台日志输出为RUNNING MODE 表示启动成功

tail -100f nohup.out

essfully. > <1111Ju1 4, 2323 <1111Ju1 4, 2323 <1111Ju1 4, 2323 p, http.>1 :4e 1 :4e • 56 56 56 56 • 56 56 PM PM PM PM PM PM EDT, EDT, EDT> EDT> EDT, EDT> eWebLogicServer> (BEA-eea365><1111Server state changed to ADMIN>eWebLogicServer> (BEA -eea365> eserver state changed to RESUMING><1111Server» <1111Channe1 "Default" is now listening on 192.168.83.143 :7ee1 <1111Notice» uction 1 2323 Modes 2323 2323 <1111WebLogicServer>eWebLogicServer> (BEA-ee0365><1111BEA-ee036e» <1111Started WebLogic Admin Server "AdminServer" for dom <1111Server state chan ed to RUNNING><1111Server started in RUNNING mode>


控制台界面网址为

http://192.168.30.85:7001/console

控制台用户

weblogic/weblogic#123


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69980685/viewspace-3005027/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: oracle 隐式密钥
请登录后发表评论 登录
全部评论
Oracle ACE、sql server、oceanbase数据库专家,拥有7年以上的大型数据库运维经验,主方向oracle,擅长故障排除、诊断,大体量(TB)迁移,异常故障修复等。拥有丰富主导大型项目经验。服务行业包括:运营商、银行、金融业、政府单位、医疗、制造业、高校等等。

注册时间:2020-07-31

  • 博文量
    116
  • 访问量
    88794