ps=`ps -efl|grep redis|grep -v $0|grep -v grep|wc -l`
if [ $ps -eq 0 ];
then
echo -e "\n$(date '+%Y-%m-%d %H:%M:%S') start "
/etc/init.d/redis start
echo "$(date '+%Y-%m-%d %H:%M:%S') done"
else
echo $(date +%F%n%T) "redis正在运行..."
exit 0;
fi
文件路径在:
location ~* \.(jpg|jpeg|png|gif)$ {
alias /www/wwwroot/wxapi.ooolo.net/$uri;
access_log off;
expires max;
}
baota.sh
docker run --name webServer -it --network=host azking/arm64_bt59_lnmp bash /www/init.sh