「求助」linux mint安装inode for linux 64bit失败
linuxmint吧
全部回复
仅看楼主
level 7
根据安装指导http://wenku.baidu.com/view/e4f7fb38376baf1ffc4fad3e.html,安装inode 7.1失败,终端提示
K46CB iNodeClient # sudo ./install.sh
./install.sh: 388: ./install.sh: chkconfig: not found
./install.sh: 389: ./install.sh: chkconfig: not found
./install.sh: 390: ./install.sh: chkconfig: not found
./install.sh: 391: ./install.sh: chkconfig: not found
Starting AuthenMngService: OK
服务开启成功,但是安装失败,求大神指教
2016年03月02日 07点03分 1
level 7
renew.ps:
#!/bin/sh
OS_UBUNTU=`cat /etc/issue | grep 'Ubuntu'`
OS_FEDORA=`cat /etc/issue | grep 'Fedora'`
OS_ROCKY=`cat /etc/issue | grep 'Rocky'`
##Rocky
if [ "$OS_ROCKY" != "" ]
then
/etc/sysconfig/network-devices/ifdown $* > /dev/null 2>&1
/etc/sysconfig/network-devices/ifup $* > /dev/null 2>&1
exit 0
fi
##Ferora
if [ "$OS_FEDORA" != "" ]
then
/sbin/ifconfig $* down > /dev/null 2>&1
/sbin/ifconfig $* up > /dev/null 2>&1
exit 0
fi
##Ubuntu
if [ "$OS_UBUNTU" != "" ]
then
if test -e "/sbin/dhclient"
then
DhcpPid=`ps -ef|grep "/sbin/dhclient $*"|grep -v "grep"|awk '{print $2}'`
if [ "$DhcpPid" != "" ]
then
kill $DhcpPid > /dev/null 2>&1
fi
Sec=0
while [ 1 ]
do
DhcpPid=`ps -ef|grep "/sbin/dhclient $*"|grep -v "grep"|awk '{print $2}'`
if [ "$DhcpPid" != "" ]
then
sleep 1
Sec=`expr $Sec + 1`
if [ "$Sec" -gt 9 ]
then
break
fi
else
break
fi
done
/sbin/dhclient $* > /dev/null 2>&1
DhcpPid=`ps -ef|grep "/sbin/dhclient $*"|grep -v "grep"|awk '{print $2}'`
if [ "$DhcpPid" != "" ]
then
kill "$DhcpPid" > /dev/null 2>&1
fi
fi
exit 0
fi
##Redhat
if test -e "/sbin/dhclient"
then
IfExist=`ps awx -o command|awk '{print $1}'|awk -F/ '{print $NF}'|grep -x dhclient`
if [ "$IfExist" != "" ]
then
killall -9 dhclient > /dev/null 2>&1
fi
Sec=0
while [ 1 ]
do
IfExist=`ps awx -o command|awk '{print $1}'|awk -F/ '{print $NF}'|grep -x dhclient`
if [ "$IfExist" != "" ]
then
sleep 1
Sec=`expr $Sec + 1`
if [ "$Sec" -gt 9 ]
then
break
fi
else
break
fi
done
/sbin/dhclient $* > /dev/null 2>&1
killall -9 dhclient > /dev/null 2>&1
fi
2016年03月02日 07点03分 3
level 5
这样就安装成功啦
2016年06月19日 13点06分 4
1