搭建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下的不同,猜测是编码问题:

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

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

weblogic@linux-velh:/home/weblogic/install> rm install_wls1213.sh
weblogic@linux-velh:/home/weblogic/install> ls
weblogic@linux-velh:/home/weblogic/install> ls -al
total 8
drwxr-xr-x 2 weblogic weblogic 4096 Jun 6 22:22 .
drwxr-xr-x 5 weblogic weblogic 4096 Jun 6 22:22 ..
weblogic@linux-velh:/home/weblogic/install> vim install_wls1213.sh
weblogic@linux-velh:/home/weblogic/install> ls -al
total 12
drwxr-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
weblogic@linux-velh:/home/weblogic/install> sh install_wls1213.sh
CREATING SILENT INSTALL FILES
INSTALLING WEBLOGIC SERVER
Launcher log file is /tmp/OraInstall2019-06-06_10-23-25PM/launcher2019-06-06_10-23-25PM.log.
Extracting files...................................
Starting Oracle Universal Installer Checking if CPU speed is above 300 MHz. Actual 1796.690 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 1123324 MB Passed
Checking 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 Passed Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2019-06-06_10-23-25PM
Log: /tmp/OraInstall2019-06-06_10-23-25PM/install2019-06-06_10-23-25PM.log
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Starting check : CertifiedVersions
Expected result: One of enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11
Actual Result: SuSE-11
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.
Starting check : CheckJDKVersion
Expected result: 1.7.0_15
Actual Result: 1.7.0_60
Check complete. The overall result of this check is: Passed
CheckJDKVersion 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.

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

最新文章

  1. 写个C#命令行参数解析的小工具
  2. win32程序通过LPCREATESTRUCT中的lpCreateParams传递参数给窗口过程函数
  3. URL中“#” “?” &“”号的作用
  4. java分享第四天(循环)
  5. Faster RCNN 运行自己的数据,刚开始正常,后来就报错: Index exceeds matrix dimensions. Error in ori_demo (line 114) boxes_cell{i} = [boxes(:, (1+(i-1)*4):(i*4)), scores(:, i)];
  6. linux 多线程基础4
  7. Android学习笔记-Intent(一)
  8. eclipse中debug快捷方式
  9. VUE环境配置步骤及相关Git Bash命令的使用
  10. 腾讯企业邮箱又一次隐藏了qq邮件列表的入口
  11. c# WinForm 文本输入对话框
  12. Genymotion安卓模拟器和VirtualBox虚拟机安装、配置、测试
  13. jenkins+git+maven 增量部署思路以及相关脚本
  14. C# Azure 设置云端应用程序的默认时间
  15. SpringMVC高级参数绑定(数组和List)
  16. rnnlm学习
  17. 用谷歌浏览器Chrome浏览jQuery Mobile页面需要配置Tomcat服务器
  18. 【Java集合源代码剖析】TreeMap源代码剖析
  19. ActiveMQ与MSMQ的异同
  20. 【CodeChef】Enormous Input Test

热门文章

  1. [bzoj1180][CROATIAN2009]OTOCI_LCT
  2. android高速上手(二)android开发环境搭建及hello world
  3. JAVA进阶-泛型
  4. matlab实现基于DFS的Ford_Fulkerson最大流最小割算法
  5. 我的IIS7.5竟然不支持ASP.NET路由
  6. Error解决:Property's synthesized getter follows Cocoa naming convention for returning 'owned'
  7. spring注入对象类型的属性
  8. 0x55 环形与后效性问题
  9. AIX的系统备份
  10. 用WPF做关于MEF 简单学习记录