错误提示:-bash: ./killmountrestart.sh: /bin/bash: bad interpreter: Operation not permitted
/killmountrestart.sh是脚本名字。
内容如下:
#!/bin/bash
/opt/IBM/HTTPServer/bin/apachectl stop
sleep 5
pkill -9 http
sleep 5
pkill -9 java
sleep 5
umount /opt/community/cache/
sleep 5
mount -t nfs 192.168.151.201:/opt/community/cache /opt/community/cache/
sleep 5
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1
sleep 20
/opt/IBM/HTTPServer/bin/apachectl start
root账户下编写,所有用户有权限:
[root@lt1-btvwz-spaceweb4 flv]# ll
total 200
drwxrwxrwx 9 weblogic weblogic 4096 Jan 25 2010 flv_images
-rwxrwxrwx 1 weblogic weblogic 345 Aug 18 14:44 killmountrestart.sh
-rwxrwxrwx 1 weblogic weblogic 670 Jun 1 09:08 killrestart
drwxrwxrwx 2 weblogic weblogic 131072 Dec 22 2010 tempflv
drwxrwxrwx 2 weblogic weblogic 36864 Dec 22 2010 tempvideo
可是还是那个提示。
翻过高山走不出你