vMA5.1上安装PCNS3.0.1时报错 ./install.sh: line 1487: /etc/rc.d/init.d/PowerChute: No such file or director
来源:互联网 发布:广东广电网络wifi设置 编辑:程序博客网 时间:2024/06/05 11:28
在vMA5.1上安装PCNS3.0.1时报错(我采用的是静态安装,即事先把参数设置好,然后执行安装文件并附带参数文件):
vi-admin@localhost:~/ESX> sudo ./install.sh -f silentInstall.sample
//安装命令,silentInstall.sample是参数文件。PCNS安装包解压后就有这个模板文件,我模板的基础上中只配置了UPS的IP,用户密码等基本参数。以下是执行安装时的结果
------------------------------------------------------------------
PowerChute Network Shutdown 3.0.1 for VMware
Copyright (c) 1999-2012 Schneider Electric.
All Rights Reserved.
------------------------------------------------------------------
OS=VIMA
Initializing ...
Silent mode input from silentInstall.sample
INSTALL_DIR=/opt/APC
JAVA_DIR=/usr/java/latest/bin/
EULA has been accepted
PCNS will be installed to /opt/APC/PowerChute
Checking version of Java ...
Detected Java Version: 1.6.0.41
Acceptable version
java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
JAVA_DIR=/usr/java/latest/bin/
Copying the installation files ...
Extracting PCNS files ...
PCNS is extracted to /opt/APC/PowerChute
Configuring startup files ...
Startup script=/etc/rc.d/init.d/PowerChute
cp: cannot create regular file `/etc/rc.d/init.d/PowerChute': No such file or directory
chmod: cannot access `/etc/rc.d/init.d/PowerChute': No such file or directory
Updating Linux symbolic link ...
PowerChute: unknown service
PowerChute: unknown service
Configuring uninstall script ...
Setup the m11.cfg file
Applying Configuration ...
Registration results ...
Connection to UPS Network Management Card (192.168.1.100) was successful.
Configuration complete.
./install.sh: line 1487: /etc/rc.d/init.d/PowerChute: No such file or directory
Installation has completed.
PowerChute Network Shutdown can be accessed through your browser at https://<your_server_ip_address>:6547
Please complete the configuration wizard so that PowerChute Network Shutdown can protect your server.
vi-admin@localhost:~/ESX>
---------------------------------------------------------
可看到,是在Install.sh中设置了启动PCNS的脚本未能被正确执行,经过查找验证发现,设置的路径不正确,
在vMA中的路径是/etc/init.d/,而不是/etc/rc.d/init.d/。
用sudo vi install.sh打开文件,搜索/etc/rc.d/init.d/可发现几个地方有配置(以下只写一个)
Initialize() {
Echo "Initializing ..."
case "$OS" in
$VIMA)
STARTUP=/etc/rc.d/init.d/PowerChute
PCBE_STARTUP=/etc/rc.d/init.d/PBEAgent
PCS_STARTUP=/etc/rc.d/init.d/pcs
;;
$XENSERVER)
STARTUP=/etc/rc.d/init.d/PowerChute
PCBE_STARTUP=/etc/rc.d/init.d/PBEAgent
PCS_STARTUP=/etc/rc.d/init.d/pcs
;;
$LINUX)
if [ -f /etc/SuSE-release ]; then
STARTUP=/etc/init.d/PowerChute
else
STARTUP=/etc/rc.d/init.d/PowerChute
fi
PCBE_STARTUP=/etc/rc.d/init.d/PBEAgent
PCS_STARTUP=/etc/rc.d/init.d/pcs
;;
$SOLARIS)
STARTUP=/etc/rc2.d/S99PowerChute
PCBE_STARTUP=/etc/rc2.d/S99PBEAgent
TR=/usr/xpg4/bin/tr
;;
$HPUX)
STARTUP=/sbin/init.d/pcns
;;
$AIX)
STARTUP=/etc/rc.APCpcns
;;
esac
}
我为了节省时间,把文档中的所有/etc/rc.d/init.d -> /etc/init.d/ 全部都替换了。然后在执行安装命令就可正常安装完成了。
由于vMA是Linux系统,从理论上说应该只要把OS为LINUX的地方改成/etc/rc.d/init.d/ -〉/etcinit.d/ 即可。
但没有时间验证,如果有人验证过,还请告知。
- vMA5.1上安装PCNS3.0.1时报错 ./install.sh: line 1487: /etc/rc.d/init.d/PowerChute: No such file or director
- Ceph部署时提示:/etc/init.d/ceph: line 15: /lib/lsb/init-functions: No such file or directory
- can't run '/etc/init.d/rcS': No such file or directory 最终解决方法
- nginx运行文件出错env: /etc/init.d/nginx: No such file or directory
- 解决:cant't run '/etc/init.d/rcS':No such file or directory
- nginx运行文件出错env: /etc/init.d/nginx: No such file or directory
- can't run '/etc/init.d/rcS': No such file or directory解决方法
- CentOS 7:/etc/init.d/iptables: No such file or directory
- PCNS3.0.1在vMa5.1上无法实现关机
- Starting MySQL/etc/init.d/mysql: line 159: kill: (21755) - No such process解决办法
- MySQL问题: Starting MySQL/etc/init.d/mysql: line 159: kill: (21755) - No such process
- -bash: ./zmore.sh: /bin/sh^M: bad interpreter: No such file or director
- /etc/init.d/mysql: No such file or directory 和 ERROR 2002 (HY000): Can't connect to local MySQL server through socket 解决办法
- /etc/rc.d/init.d内容分析
- /etc/rc.d/init.d/leds
- linux /etc/init.d/ rc*.d 详解
- /etc/rc.d/init.d/ssh
- /etc/rc.local 与 /etc/init.d
- 自定义圆形ProgressBar
- FFMPEG
- Linux---kfifo
- c#项目中可以用xml文件存储配置参数
- javax.servlet.http.HttpServletRequest
- vMA5.1上安装PCNS3.0.1时报错 ./install.sh: line 1487: /etc/rc.d/init.d/PowerChute: No such file or director
- Visual Studio 2010调试技巧
- ubuntu下安装smba
- 关于ActionContext.getContext()的用法心得
- samba配置 以及没有权限访问的 解决方法
- getPath()返回路径包含的“%20”(空格)的处理
- 解决JSP中文乱码问题
- gloox 心跳处理封装
- http协议详细解释