搭建`wenblogic`执行`install`脚本失败

搭建`wenblogic`执行`install`脚本失败,第1张

概述搭建weblogic服务,前期准备都已经完成,安装包都是已上传,执行install_wls1213.sh脚本,出现以下报错: install_wls1213.sh: line 1: rectory: command not found: command not found line 3: : command not found line 6: : command not found line

搭建weblogic服务,前期准备都已经完成,安装包都是已上传,执行install_wls1213.sh脚本,出现以下报错:

install_wls1213.sh: line 1: rectory: command not found: command not found line 3: : command not found line 6: : command not found line 9: : command not found line 12: : command not found line 15: : command not found line 18: : command not found line 19: 'nstall_wls1213.sh: line 24: Syntax error near unexpected token `{'nstall_wls1213.sh: line 24: `create_silent_install_files() {

查看脚本内容,只是生成两个文件,但是提示语法错误,前几天遇到windows下换行符与linux下的不同,猜测是编码问题:

删除已上传的脚本 在该目录下新建一个同名的脚本文件,并进入编辑 在xshell界面粘贴utf-8编码的脚本内容,保存 执行脚本文件

发现成功执行,并安装上了weblogic服务。

[email protected]:/home/weblogic/install> rm install_wls1213.sh [email protected]:/home/weblogic/install> ls[email protected]:/home/weblogic/install> ls -altotal 8drwxr-xr-x 2 weblogic weblogic 4096 Jun  6 22:22 .drwxr-xr-x 5 weblogic weblogic 4096 Jun  6 22:22 ..[email protected]:/home/weblogic/install> vim install_wls1213.sh [email protected]:/home/weblogic/install> ls -altotal 12drwxr-xr-x 2 weblogic weblogic 4096 Jun  6 22:23 .drwxr-xr-x 5 weblogic weblogic 4096 Jun  6 22:23 ..-rw-r--r-- 1 weblogic weblogic 2493 Jun  6 22:23 install_wls1213.sh[email protected]:/home/weblogic/install> sh install_wls1213.sh CREATING SILENT INSTALL fileSINSTALliNG WEBLOGIC SERVERLauncher log file is /tmp/OraInstall2019-06-06_10-23-25PM/launcher2019-06-06_10-23-25PM.log.Extracting files...................................Starting Oracle Universal InstallerChecking if cpu speed is above 300 MHz.   Actual 1796.690 MHz    PassedChecking swap space: must be greater than 512 MB.   Actual 1123324 MB    PassedChecking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)Checking temp space: must be greater than 300 MB.   Actual 12192 MB    PassedPreparing to launch the Oracle Universal Installer from /tmp/OraInstall2019-06-06_10-23-25PMLog: /tmp/OraInstall2019-06-06_10-23-25PM/install2019-06-06_10-23-25PM.logcopyright (c) 1996,2014,Oracle and/or its affiliates. All rights reserved.Reading response file..Starting check : CertifIEdVersionsExpected result: One of enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11Actual Result: SuSE-11Check complete. The overall result of this check is: PassedCertifIEdVersions Check: Success.Starting check : CheckJDKVersionExpected result: 1.7.0_15Actual Result: 1.7.0_60Check complete. The overall result of this check is: PassedCheckJDKVersion Check: Success.ValIDations are enabled for this session.Verifying data......copying files...You can find the log of this install session at: /tmp/OraInstall2019-06-06_10-23-25PM/install2019-06-06_10-23-25PM.log-----------20%----------40%----------60%----------80%--------100%The installation of Oracle Fusion MIDdleware 12c WebLogic Server and Coherence 12.1.3.0.0 completed successfully.Logs successfully copIEd to /home/weblogic/tmp/.inventory/logs.

看来是编码问题导致的报错

总结

以上是内存溢出为你收集整理的搭建`wenblogic`执行`install`脚本失败全部内容,希望文章能够帮你解决搭建`wenblogic`执行`install`脚本失败所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1072410.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存