99精品国产综合久久久久五月天,免费观看欧美大片毛片不用播放器 ,AV无码理论片在线观看免费网站,国产精品国产成人国产三级

Board logo

標(biāo)題: [BUG反饋] wdcp web重起失敗問題 [打印本頁]

作者: triven    時間: 2020-4-18 10:18     標(biāo)題: wdcp web重起失敗問題

建議web重起,改為web重啟,看到有點別扭。好像很多朋友遇到這個問題。
webrestart.sh文件在ssh運行是正常的,在計劃任務(wù)里面基本會失敗,失敗原因不知道,只知道失敗的結(jié)果是web服務(wù)沒有啟動,這里修改下在執(zhí)行重啟前先啟動下web服務(wù)。。

這里只保留了nginx,所以httpd沒啟用。

  1. #!/bin/bash
  2. # wdcp tools
  3. #
  4. # author wdlinux
  5. # url http://fudaan.com
  6. tld="/www/wdlinux/wdcp/logs"
  7. [ ! -d $tld ] && mkdir -p $tld
  8. tlf=$tld/task.log#先啟動下nginx
  9. service nginxd start
  10. netstat -lnpt | grep nginx && killall -9 nginx && service nginxd start && date >> $tlf && echo "nginx restart success" >> $tlf && exit 0
  11. #netstat -lnpt | grep httpd && killall -9 httpd && service httpd start && date >> $tlf && echo "apache restart success" >> $tlf && exit 0
  12. date >> $tlf && echo "web restart fail" && exit 1
復(fù)制代碼





歡迎光臨 WDlinux官方論壇 (http://fudaan.com/bbs/) Powered by Discuz! 7.2