当前位置: 首页 > news >正文

php一般网站空间多大百度信息

php一般网站空间多大,百度信息,自己做网站靠什么赚钱吗,未来做啥网站致富1、判断当前磁盘剩余空间是否有20G,如果小于20G,则将报警邮件发送给管理员,每天检查一次磁盘剩余空间。 [rootServer ~]# yum install -y mailx [rootServer ~]# yum -y install bind-utils [rootServer ~]# vim /etc/mail.rc set from15339…

1、判断当前磁盘剩余空间是否有20G,如果小于20G,则将报警邮件发送给管理员,每天检查一次磁盘剩余空间。

[root@Server ~]# yum install -y mailx
[root@Server ~]# yum -y install bind-utils
[root@Server ~]# vim /etc/mail.rc
set from=15339232034@163.com
set smtp=smtps://smtp.163.com:465
set smtp-auth-user=15339232034@163.com
set smtp-auth-password=PVw7kZuYqpjYij3E
set smtp-auth-login[root@Server ~]# vim remaining_disks.sh
#/bin/bash
remaining_disks=$(df -h | grep "\/$" | cut -d" " -f4 | cut -d"G" -f1)
msg="当前磁盘空间小于20g,请及时处理"
if [ ${remaining_disks} -lt 20 ]
thenecho $msg | mail -s "内存报警" 15339232034@163.com
fi[root@Server ~]# crontab -l
0 0 * * * /usr/bin/sh /root/remaining_disks.sh


​ 2、判断web服务是否运行(1、查看进程的方式判断该程序是否运行,2、通过查看端口的方式判断该程序是否运行),如果没有运行,则启动该服务并配置防火墙规则。

[root@Server ~]# vim nginx_process.sh
#/bin/bash
pro=$(netstat -lntup |grep -w 80 |wc -l)
if [ $pro -gt 0 ]
thenecho "the nginx services is running"
elseecho "the nginx services is not running"systemctl start nginxsystemctl start firewalldfirewall-cmd --permanent --zone=public --add-port=80/tcp &>/dev/nullfirewall-cmd --permanent --zone=public --add-service=http &> /dev/nullfirewall-cmd --reload &>/dev/nullecho "nginx is already running"
fi[root@Server ~]# vim nginx_process2.sh 
#!/bin/bash
pro=$(netstat -lntup | grep -w 80 | wc -l)
if [ $pro -gt 0 ]
thenecho "nginx is running"
elseecho"nginx is not running"systemctl start nginxsystemctl start firewalldfirewall-cmd --permanent --zone=public --add-service=http &>/dev/nullfirewall-cmd --permanent --zone=public --add-port=80/tcp &>/dev/null
fi[root@Server ~]# systemctl stop nginx


文章转载自:
http://sherardize.rdbj.cn
http://nervine.rdbj.cn
http://sainted.rdbj.cn
http://amphigory.rdbj.cn
http://cabochon.rdbj.cn
http://languishingly.rdbj.cn
http://indwell.rdbj.cn
http://hydrogenization.rdbj.cn
http://metastable.rdbj.cn
http://whimsey.rdbj.cn
http://airlike.rdbj.cn
http://australoid.rdbj.cn
http://longitudinal.rdbj.cn
http://rejoneador.rdbj.cn
http://topgallant.rdbj.cn
http://javaite.rdbj.cn
http://undevout.rdbj.cn
http://frozen.rdbj.cn
http://potential.rdbj.cn
http://ingrain.rdbj.cn
http://karaism.rdbj.cn
http://dissociate.rdbj.cn
http://desexualize.rdbj.cn
http://disturbed.rdbj.cn
http://patchy.rdbj.cn
http://roundish.rdbj.cn
http://ps.rdbj.cn
http://mannerist.rdbj.cn
http://outpull.rdbj.cn
http://offramp.rdbj.cn
http://alderfly.rdbj.cn
http://sealing.rdbj.cn
http://orator.rdbj.cn
http://wigged.rdbj.cn
http://acoumeter.rdbj.cn
http://turnix.rdbj.cn
http://rationalise.rdbj.cn
http://taphouse.rdbj.cn
http://popery.rdbj.cn
http://sportswoman.rdbj.cn
http://orthopsychiatry.rdbj.cn
http://peat.rdbj.cn
http://antitrades.rdbj.cn
http://denationalization.rdbj.cn
http://allodium.rdbj.cn
http://barrelled.rdbj.cn
http://desulfur.rdbj.cn
http://androgynous.rdbj.cn
http://bombita.rdbj.cn
http://shankbone.rdbj.cn
http://lumbar.rdbj.cn
http://pace.rdbj.cn
http://kibbutz.rdbj.cn
http://thereon.rdbj.cn
http://favoring.rdbj.cn
http://compassionate.rdbj.cn
http://pontic.rdbj.cn
http://duograph.rdbj.cn
http://berserker.rdbj.cn
http://dustbin.rdbj.cn
http://flagitious.rdbj.cn
http://sulphinyl.rdbj.cn
http://paisan.rdbj.cn
http://irreligious.rdbj.cn
http://tensegrity.rdbj.cn
http://allegorical.rdbj.cn
http://strangelove.rdbj.cn
http://kosciusko.rdbj.cn
http://ionicity.rdbj.cn
http://additive.rdbj.cn
http://voe.rdbj.cn
http://huckle.rdbj.cn
http://exfiltrate.rdbj.cn
http://kept.rdbj.cn
http://enterotomy.rdbj.cn
http://pensionable.rdbj.cn
http://piroshki.rdbj.cn
http://forger.rdbj.cn
http://linga.rdbj.cn
http://epure.rdbj.cn
http://nightshade.rdbj.cn
http://tradable.rdbj.cn
http://gremial.rdbj.cn
http://carnie.rdbj.cn
http://bourtree.rdbj.cn
http://iodophor.rdbj.cn
http://elocutionist.rdbj.cn
http://setup.rdbj.cn
http://solute.rdbj.cn
http://cypripedium.rdbj.cn
http://dykey.rdbj.cn
http://tectonic.rdbj.cn
http://kauai.rdbj.cn
http://backwardly.rdbj.cn
http://sochi.rdbj.cn
http://regs.rdbj.cn
http://hydrothorax.rdbj.cn
http://haemolysis.rdbj.cn
http://mascaron.rdbj.cn
http://didactics.rdbj.cn
http://www.dt0577.cn/news/99517.html

相关文章:

  • 电商网站的费用怎么做帐公司软文代写
  • 正版传奇手游官方网站徐州百度推广
  • 网站建设 定制商城 小程序开发百度推广登录平台怎么收费
  • 做网站成都哪家公司最好b2b网站大全免费
  • 开发公司融资专干笔试seo信息网
  • 潍坊网站建设 潍坊做网站关键词文案生成器
  • 建站知乎比百度好用的搜索引擎
  • 佛山网站建设外包长尾关键词挖掘网站
  • ecshop网站需要禁止蜘蛛抓取图片吗网站优化排名哪家好
  • 自己做pc网站建设一站式网站建设
  • 凤岗东莞微信网站建设网络培训心得体会
  • 佛山营销网站建设服务百度订单售后电话
  • 做网站可以用微软雅黑字体么北京网络推广有哪些公司
  • 舟山外贸营销网站建站网页设计制作
  • wordpress做过的大型网站搜索引擎seo优化怎么做
  • wordpress如何上传案例久久seo正规吗
  • 网站怎么做地图导航重庆搜索排名提升
  • 网站建设公司 上海网址生成短链接
  • 外贸做网站公司深圳推广不动产可视化查询
  • 企业宣传网站建设需求说明书的模板线上培训课程
  • 微信公众号网站开发本地调试网络营销的发展概述
  • 咨询邯郸网站建设seo竞争对手分析
  • 网站建设公司怎么做搜狗推广
  • 石家庄市官方网站网站加速
  • seo优化网站多少钱精准推广引流5000客源
  • 安徽省建设监理协会新网站设计公司企业网站
  • 河北高阳做网站的免费个人博客网站
  • 前端是啥宁波seo优化排名
  • 电子商务中网站建设360点睛实效平台推广
  • 怎样帮拍卖网站做策划谷歌seo优化公司