会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
noops
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
2015年9月7日
搭建Google镜像网站
摘要: 重启Nginx即可。
阅读全文
posted @ 2015-09-07 10:12 noops
阅读(2531)
评论(0)
推荐(0)
2015年9月6日
Windows server 安装 OpenSSH
摘要: 文件自己网上下载或百度云盘提取即可 执行setupssh.exe,一直 next 下去 把安装目录下的 sshd_config 文件 copy 到 C:\Program Files (x86)\OpenSSH\etc\目录下文件内容如下: Port 26333 Protocol 2 ListenAd
阅读全文
posted @ 2015-09-06 16:28 noops
阅读(2467)
评论(0)
推荐(0)
2015年8月27日
expect 自动化控制命令
摘要: expect 的核心是 spawn expect send setspawn 调用要执行的命令expect 等待命令提示信息的出现,也就是捕捉用户输入的提示:send 发送需要交互的值,替代了用户手动输入内容set 设置变量值interact 执行完成后保持交互状态,把控制权交给控制台,这个时候就可...
阅读全文
posted @ 2015-08-27 11:25 noops
阅读(597)
评论(0)
推荐(0)
2015年7月23日
利用SSH上传、下载(使用sz与rz命令)
摘要: 安装yum-yinstalllrzsz用法sz用法:从服务器发送出去相当于下载一个文件sz filename下载多个文件sz filename1 filename2rz用法:从外面接收回来,相当于下载设置SecureCRT:设置上传和下载的默认目录:英文版: options — session op...
阅读全文
posted @ 2015-07-23 23:28 noops
阅读(1076)
评论(0)
推荐(0)
2015年7月22日
Centos 修改主机名
摘要: #!/bin/bash if [ $# -ne 1 ]; then echo `basename $0` "input hostname" else hostnamectl --static set-hostname $1 hostnamectl --transient set-hostname $
阅读全文
posted @ 2015-07-22 10:15 noops
阅读(188)
评论(0)
推荐(0)
2015年7月21日
vim 高级编辑技巧
摘要: 建议参考IBM官方文档https://www.ibm.com/developerworks/cn/linux/l-cn-tip-vim/ 重新输入以前输入过的某条命令Ctrl + r 全局替换格式:":%s/要替换字符/替换为新字符/g":%s/old/new/g 指定行替换 格式: ":起始行,终
阅读全文
posted @ 2015-07-21 21:36 noops
阅读(274)
评论(0)
推荐(0)
Centos 5 无法使用ifconfig命令
摘要: 问题原因,在环境变量里没有包含文件夹 / sbin , 该文件夹下存有 ifconfig, 可以在终端下 cat /etc/profile, 可以发现没有关于 / sbin 的环境变量解决方法:vi /etc/profile在文件末尾追加下面2行配置文件:PATH=$PATH:/sbin expor
阅读全文
posted @ 2015-07-21 14:06 noops
阅读(307)
评论(0)
推荐(0)
2015年7月19日
Iptables 详解
摘要: Iptables中的4表5链四张表:filter表、nat表、mangle表、raw表五条链:INPUT OUTPUT FORWARD PREROUTING POSTROUTINGFilter表:访问控制、规则匹配Nat表:地址转发Iptables规则组成数据包访问控制:ACCEPT、DROP、RE...
阅读全文
posted @ 2015-07-19 11:34 noops
阅读(509)
评论(0)
推荐(0)
2015年7月15日
mysql 提示表损坏处理方法
摘要: 公司网站有些页面打不开,第二次出现这个情况重启数据库,提示有一个表crashed:这是第二次出现这个问题,这个时候,进入数据库文件目录输入:myisamchk-r"Table_Name"就可以修复了有问题的表了。
阅读全文
posted @ 2015-07-15 15:39 noops
阅读(274)
评论(0)
推荐(0)
2015年7月14日
Nagios 监控windows server Apache 服务
摘要: 监控机需要使用check_apachestatus.pl插件插件下载地址:https://exchange.nagios.org/directory/Tutorials/Other-Tutorials-And-HOWTOs/Monitoring-Apache-Session-load-with-Na...
阅读全文
posted @ 2015-07-14 16:46 noops
阅读(304)
评论(0)
推荐(0)
2015年7月11日
Nagios故障 CHECK_NRPE: Socket timeout after 10 seconds.
摘要: Nagios 的警报信息如下,意思是 nrpe 进程执行某些脚本超过了 10 秒钟,就会发警报CHECK_NRPE: Socket timeout after 10 seconds修改 command.cfg 配置文件,把 NRPE 的时间调整到 30sdefine command{command_...
阅读全文
posted @ 2015-07-11 21:48 noops
阅读(3421)
评论(0)
推荐(0)
Install Nagios (Agent) nrpe client and plugins in Ubuntu/Debian
摘要: 安装apt-get install nagios-nrpe-server nagios-plugins修改nrpe.cfgvi/etc/nagios/nrpe.cfg修改Allow Host,添加监控机的IPservice nagios-nrpe-server restart修改servicesvi...
阅读全文
posted @ 2015-07-11 20:57 noops
阅读(265)
评论(0)
推荐(0)
Debian 系统安装 Nagios 服务器监控端
摘要: 安装apt-get updateapt-get install nagios* perlapt-get install --no-install-recommends pnp4nagiosapt-get install apache2 apache2-utils php5 php-pear修改np...
阅读全文
posted @ 2015-07-11 09:57 noops
阅读(607)
评论(0)
推荐(0)
2015年7月7日
Nagios 监控 Httpd 并发数插件
摘要: 工作需要监控Httpd并发数,找不到合适的插件,花时间研究了一下Nagios监控内存的脚本,做了一些修改,完成了脚本。监控内存脚本:http://www.cnblogs.com/Mrhuangrui/p/4585615.html监控Http并发数脚本代码如下:#!/bin/bashif [ "$1"...
阅读全文
posted @ 2015-07-07 15:48 noops
阅读(254)
评论(0)
推荐(0)
nagios 配置 check_traffic 流量监控模块(被监控端)
摘要: 安装软件包yum -y install net-snmp*chkconfig nrpe onchkconfig snmpd on使用SCP命令拷贝 check_traffic.sh 到 / usr/lib64/nagios/plugins/check_traffic.shGitHub 下载地址:ht...
阅读全文
posted @ 2015-07-07 12:28 noops
阅读(355)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
公告