搭建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. dubbo客户端初始化问题

    背景:工作中遇到了调用dubbo服务的场景,项目不是spring项目,我只想简单的调用服务端的接口,不想加入那么多配置. 在服务对接中,遇到调用dubbo服务的场景.按照公司的框架给的开发文档,要加配 ...

  2. elasticsearch 权威指南排序阅读笔记(六)

    默认排序 默认查询是通过_source 准确性权重来排序 字段排序 { "query":{ "match":{ "productName": ...

  3. oracle 单独开始一个事物的写法 。

    SET TRANSACTION NAME 'Update salaries'; SAVEPOINT before_salary_update; UPDATE employees SET salary= ...

  4. 0923关于安装mysql两种简单方式

    http://blog.csdn.net/liumm0000/article/details/18841197 方式一:利用RPM安装包进行安装 RPM方式安装MySQL5.6 RPM方式安装MySQ ...

  5. [React Native] Target both iPhone and iPad with React Native

    By default, React Native only targets iPhone - so if you run on an iPad, it will show up as a scaled ...

  6. FaceBook推出的Android图片载入库-Fresco

    欢迎关注ndroid-tech-frontier开源项目,定期翻译国外Android优质的技术.开源库.软件架构设计.測试等文章 原文链接:Introducing Fresco: A new imag ...

  7. 【机房收费系统C#版】——导出Excel

    前言 机房合作開始好长了一段时间.反重复复开了几次会,项目也是一拖再拖,作为组长.有80%的责任都在于我.为了不让这个项目陪着我过春节.要求自己一定要在这几天敲完. 还是一样的问题,用C#敲,从一開始 ...

  8. JVM中java类的载入时机

    Java虚拟机把描写叙述类的数据从Class文件载入到内存.并对数据进行校验.转换解析和初始化.终于形成能够被虚拟机直接使用的Java类型.这就是虚拟机的载入机制. 类从被载入到虚拟机内存中開始,到卸 ...

  9. 【JEECG技术博文】Local storage & easyui extensions

    1. Local storage背景 cookie弊端:同域内http请求都会带cookie,添加带宽和流量:有个数和限制大小(约4K). 在HTML5中,本地存储是一个window的属性.包含loc ...

  10. 基于ZF中的.htaccess文件学习Apache的Rewrite语法

    首先我们看一下这个.htaccess文件: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST ...