搭建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.

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

搭建`wenblogic`执行`install`脚本失败的更多相关文章

  1. Windows 2008任务计划执行bat脚本失败返回0x1

    测试环境: C:\>systeminfo | findstr /c:"OS Name"OS Name:                   Microsoft Windows ...

  2. 记录一次 Linux crontab 执行django 脚本 失败 的经历和解决办法

    目的是想通过定时任务来执行一次数据统计,本来可以用celery来做,但是想着这个项目整个就没用到异步的地方,所以决定用crontab来做.之前做过数据库的热备份,想来用该没啥问题,但是现实打脸啪啪响. ...

  3. crontab定时执行shell脚本失败的原因

    有一段时间不用crontab定时执行任务了,这次趁着项目实施的机会来进一步分析一下crontab定时任务设置时遇到的一些棘手的问题. crontab -l 查看目前已经设置的crontab信息 cro ...

  4. 谁能告诉我如何通过Jenkins完成分布式环境搭建并执行自动化脚本

    ​今天我们接着昨天的内容,看一看如何完成Jenkins分布式环境的搭建和使用,因为我之前也是自己一个人摸索的,如果有不对的地方,请各位看官私信指出. 新增分布式部署节点 在系统管理/节点管理中点击新建 ...

  5. jenkins windows执行批处理脚本总是失败

    使用jenkins 在使用编译vc++的一个项目,在执行批处理脚本的时候总是失败, 但是在控制台无论是管理员还是普通用户都能正常编译,jenkins每次都失败,看日志就是调用一个cmd命令直接失败,e ...

  6. appium1.4+华为8.0执行自动化脚本,报启动session失败,原因是unicode_ime_apk\Uni codeIME-debug.apk在手机上已存在,再次安装失败,导致启动session失败,解决办法:换高版本的appium

    最开始做Android自动化测试时,通过执行脚本发现报,已安装UnicodeIME-debug.apk,再次安装失败,当时觉得这个apk对我来说没用,就把D:\Program Files (x86)\ ...

  7. /tmp目录下执行脚本失败提示Permission denied

    Linux上执行Shell脚本运行失败提示Permission denied一个问题,挺好的问题,切中了知识盲点. 问题现象 Shell脚本在/tmp目录下,执行./test.sh运行失败,提示Per ...

  8. [转帖]Linux /tmp目录下执行脚本失败提示Permission denied

    Linux /tmp目录下执行脚本失败提示Permission denied https://www.cnblogs.com/linyfeng/p/11087655.html 国产化的环境上 就有一个 ...

  9. 解决命令行执行shell脚本成功,但crontab执行失败

    实际生产案例 生产机房自建PPTP客户端通过拨号连接到生产机房,但是一旦客户端网络是意外断线再重新拨号 会产生IP冲突,于是写了一个脚本监控PPTP的IP是否有多个(一般冲突以后会生成2个IP) #! ...

随机推荐

  1. Nikita and stack

    Nikita and stack time limit per test 2 seconds memory limit per test 256 megabytes input standard in ...

  2. 一个asp+ACCESS省市二级联动菜单程序

    <%dim conndim connstron error resume nextconnstr="DBQ="+server.MapPath("test.mdb&q ...

  3. android中常见的内存泄漏和解决的方法

    android中的内存溢出预计大多数人在写代码的时候都出现过,事实上突然认为工作一年和工作三年的差别是什么呢.事实上干的工作或许都一样,产品汪看到的结果也都一样,那差别就是速度和质量了. 写在前面的一 ...

  4. Notepad++ 设置执行 lua 和 python

    Notepad++ 设置执行 lua 和 python 一.设置 run -> 设置 cmd /k lua "$(FULL_CURRENT_PATH)" & PAUS ...

  5. CSU 1506 Problem D: Double Shortest Paths(最小费用最大流)

    题意:2个人从1走到n,假设一条路第一次走则是价值di,假设第二次还走这条路则须要价值di+ai,要你输出2个人到达终点的最小价值! 太水了!一条边建2次就OK了.第一次价值为di,第二次为ai+di ...

  6. Ubuntu Tomcat Service

    只需要将%TOMCAT_HOME%/bin/catalina.sh文件拷贝到/etc/init.d/文件夹下,稍作编辑,然后注册成系统服务,是否设置自启动均可. 1. 编辑catalina.sh文件c ...

  7. c20---指向函数的指针

    // // main.c // 指向函数的指针 #include <stdio.h> void test() { printf("哥被执行了\n"); } int ge ...

  8. 南海区行政审批管理系统接口规范v0.3(规划) 2.业务申报API 2.1.businessApply【业务申报】

    {"v_interface":"2015987654327","c_project":"NH09A102"," ...

  9. 关于H5优化的一些问题

    required修改默认提示  : <form action="abc.php"> <input type="text" required o ...

  10. 一次显式GC导致的High CPU问题处理过程

    项目现场反馈系统出现性能问题,具体表现为:所有的客户端响应极其卡顿. 第一反应推测,难道是DB层面出现阻塞?检查v$session会话状态及等待类型未见异常,应该可以排除DB层面原因导致的可能. 继续 ...