#!/bin/bash
#清除ipcs
for ipcs in `ipcs -s|awk '{print $2}'`;
do
echo "ipcs=$ipcs"
ipcrm -s $ipcs
done
/etc/init.d/httpd restart
如果显示绿色的“OK”,则代表成功!无需再反复尝试了!
#!/bin/bash
#清除ipcs
for ipcs in `ipcs -s|awk '{print $2}'`;
do
echo "ipcs=$ipcs"
ipcrm -s $ipcs
done
/etc/init.d/httpd restart
如果显示绿色的“OK”,则代表成功!无需再反复尝试了!