01 2016 档案

摘要:centos shell编程6一些工作中实践脚本 nagios监控脚本 自定义zabbix脚本 mysql备份脚本 zabbix错误日志 直接送给bc做计算 gzip innobackupex/Xtrabackup 第四十节课 上半节课nagios监控脚本自定义zabbix脚本 下半节课mysql备 阅读全文
posted @ 2016-01-30 23:25 huangchaolilli 阅读(532) 评论(0) 推荐(0)
摘要:Linux中的两种守护进程stand alone和xinetd --http://www.cnblogs.com/itech/archive/2010/12/27/1914846.html#top 一般使用stand alone /etc/init.d/ 非常少用xinetd /etc/xinetd 阅读全文
posted @ 2016-01-29 00:17 huangchaolilli 阅读(1651) 评论(0) 推荐(0)
摘要:centos shell编程5 LANMP一键安装脚本 lamp sed lnmp 变量和字符串比较不能用-eq cat > /usr/local/apache2/htdocs/index.php <<EOF重定向 shell的变量和函数命名不能有横杠 平台可以用arch命令,获取是i686还是x8 阅读全文
posted @ 2016-01-27 23:07 huangchaolilli 阅读(899) 评论(0) 推荐(0)
摘要:centos shell编程4【分发系统】 服务器标准化 mkpasswd 生成密码的工具 expect讲解 expect传递参数 expect自动同步文件 expect指定host和要同步的文件 expect文件分发系统 expect自动发送密钥脚本 Linux脚本执行方式 第三十八节课 expe 阅读全文
posted @ 2016-01-26 22:15 huangchaolilli 阅读(1071) 评论(0) 推荐(0)
摘要:centos shell编程3【告警系统】 没有服务器端和客户端的概念 main.sh mon.conf load.sh 502.sh mail.php mail.sh disk.sh 第三十七节课 上半节课 没有服务器端和客户端的概念main.shmon.confload.sh 下半节课 502. 阅读全文
posted @ 2016-01-25 23:39 huangchaolilli 阅读(462) 评论(0) 推荐(0)
摘要:centos shell脚本编程2 if 判断 case判断 shell脚本中的循环 for while shell中的函数 break continue test 命令 第三十六节课 return用在函数中exit用在shell当中 直接退出整个脚本,整个子shell或当前shellbreak退出 阅读全文
posted @ 2016-01-23 16:51 huangchaolilli 阅读(4021) 评论(0) 推荐(0)
摘要:新安装和已安装nginx如何添加未编译安装模块/补丁 --http://www.apelearn.com/bbs/forum.php?mod=viewthread&tid=10485&page=1&extra=#pid105098新安装nginx如何添加未编译安装模块/补丁之前发过一篇nginx如何... 阅读全文
posted @ 2016-01-20 15:35 huangchaolilli 阅读(1984) 评论(0) 推荐(0)
摘要:centos shell脚本编程1 正则 shell脚本结构 read命令 date命令的用法 shell中的逻辑判断 if 判断文件、目录属性 shell数组简单用法 $( ) 和${ } 和$(( )) 与 sh -n sh -x sh -v 第三十五节课 Shebang/Sha-bang在计算 阅读全文
posted @ 2016-01-20 08:29 huangchaolilli 阅读(4878) 评论(0) 推荐(0)
摘要:Linux下Rsync+Inotify-tools实现数据实时同步   注意:下面的三个案例都是rsync 每次都是全量的同步(这就坑爹了),而且 file列表是循环形式触发rsync ,等于有10个文件发生更改,就触发10次rsync全量同步(简直就是噩梦),那还不如直接写个死循环的rsync全量 阅读全文
posted @ 2016-01-14 14:41 huangchaolilli 阅读(957) 评论(0) 推荐(0)
摘要:sshd:root@notty解决方法 [复制链接]--http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=2050551cat /etc/fstab## /etc/fstab# Created by anaconda on Mon Jan 2... 阅读全文
posted @ 2016-01-14 10:33 huangchaolilli 阅读(15926) 评论(0) 推荐(0)
摘要:apache ab test使用 apache ab test使用 单独安装ab和htpasswd 转载自: http://www.cnblogs.com/super-d2/p/3831155.html#top http://blog.chinaunix.net/uid-20382003-id-30 阅读全文
posted @ 2016-01-12 08:45 huangchaolilli 阅读(2358) 评论(0) 推荐(1)
摘要:SNMP 原理及配置简述 net-snmp-utils net-snmp 第2版基于SNMP 群体名(community name) 第3版引入了安全性更高的访问控制方法 SNMP协议操作只有4种 Apache的php_snmp 模块--http://www.linuxfly.org/post/55... 阅读全文
posted @ 2016-01-07 18:46 huangchaolilli 阅读(2137) 评论(0) 推荐(0)
摘要:LVS和nginx反向代理网站架构nginx反向代理和lvs的dr都存在单点,要keepalived做高可用,但是成本高了f 阅读全文
posted @ 2016-01-04 19:46 huangchaolilli 阅读(737) 评论(0) 推荐(0)
摘要:闪存存储特性以及数据库相关优化思路 http://mp.weixin.qq.com/s?__biz=MzI4NTA1MDEwNg==&mid=402040501&idx=1&sn=f0134db82b630a05c68403fbb93645c0&scene=0#wechat_redirect 闪存存 阅读全文
posted @ 2016-01-04 00:08 huangchaolilli 阅读(690) 评论(0) 推荐(0)