- 博客(6)
- 收藏
- 关注
转载 php环境一键升级脚本v2.0
此脚本用于一键升级到自己想要的php版本,解决linux系统自带的php版本过低的问题,基于之前的版本做了一些功能扩展和使用体验上的优化;#!/bin/bashif [ $(id -u) != 0 ] ;thenecho "ERROR: you must be root ...
2018-07-19 13:28:00
240
转载 处理cpu %wa过大,导致服务器不能访问的问题。
今天发现自己的云服务器网站无法访问,查看之后发现,cpu 内存使用正常,监听端口也是正常的,用top命令发现: wa指CPU等待磁盘写入完成的时间。表示磁盘繁忙,这样一来web服务器自然就无法接收新的用户请求(因为linux处理每个进程都需要打开相应的文件句柄。) 用iostat...
2018-06-11 09:47:00
1753
转载 时间同步服务器ntpd的搭建
如果系统没有默认安装,可以手动安装,一条命令就可以搞定: yum install ntp -y 安装之后修改配置文件: vim /etc/ntp.conf #restrict 127.0.0.1 #restrict -6 ::1 ...
2018-06-07 17:22:00
193
转载 linux的压力测试工具
只能用于http的测试工具: ab: 安装方法:yum install httpd-tools -y 使用:ab -c 1000 -n 10000 + ip -c 为并发数,-n 为总的请求数 返回结果: 吞吐率(Requests per second) 概念...
2018-05-17 11:23:00
267
转载 云主机被挖矿的应急脚本
#!/bin/bash # This script is used to kill progress which having abnormal occupancy rate of CPU, # I want through this way to protect my server fr...
2018-05-09 14:39:00
135
转载 php环境一键升级脚本
#!/bin/bash if [ $(id -u) != 0 ] ;then echo "ERROR: you must be root to run this script" exit 1 fi read -p "Are ready to...
2018-05-09 14:23:00
372
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人