Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabc committed Nov 18, 2016
1 parent fecd647 commit 1474ec6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
kjyw
kjyw 快捷运维
===========
快捷运维 kjyw 项目基于shell开发
主要的功能有:
实现快速安装nginx、mysql、php、redis、nagios、iptables、运维经常使用的脚本等等... 想了解的自行下载研究使用.^_^!

快捷运维
相关使用文档:https://aqzt.com/forum-39-1.html

简单 高效 快捷!

这里面的脚本是运维经常使用的脚本,方便大家使用!

相关使用文档:https://github.com/aqzt/kjyw/wiki

如果您有好用的脚本,希望一起来分享,可以联系邮件ppabc#qq.com,

微信关注https://github.com/aqzt
微信关注

![image](https://github.com/aqzt/kjyw/raw/master/images/aqzt.jpg)
![image](https://git.oschina.net/aqztcom/kjyw/raw/master/images/aqzt.jpg)

运维就是踩坑,踩坑的最高境界就是:踩遍所有的坑,让别人无坑可踩!

Expand Down
3 changes: 2 additions & 1 deletion kafka/Kafka.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ zookeeper.connection.timeout.ms=6000
EOF

cat >/opt/zk/conf/zoo.cfg<<EOF
maxClientCnxns=50
maxClientCnxns=500
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/data/zookeeper/
dataLogDir=/data/zookeeper/logs
clientPort=2181
server.1=master.storm.com:2888:3888
EOF
Expand Down
15 changes: 15 additions & 0 deletions nagios/nagios_logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
## nagios 2016-11-11
## http://www.aqzt.com
## email: [email protected]
## robert yu
## centos 6和centos 7
## 对nagios日志排序,找出告警最多的IP,用于优化ngios配置

cat nagios-$1-2016-00.log |grep mail | awk -F '[;]' '{print $2}' > nagios_$1.log

sort nagios_$1.log | uniq -c | sort -n > nagios_$1_a.log

cat nagios_$1_a.log

echo ok
2 changes: 1 addition & 1 deletion shell/find/find.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ find /data/file1 -name .git -print0 | xargs -0 rm -r -f
find /data/nginx/log/ -ctime +5 -exec rm -f {} \;
find /data/logs -ctime +5 -exec rm -f {} \;
find /data/logs -name "localhost_access_log*.txt" -type f -mtime +5 -print -exec rm -f {} \;

find /data/zookeeper/logs -name "log.*" -type f -mtime +5 -print -exec rm -f {} \;

##删除目录下所有的 .svn 隐藏子目录
find . -name .svn -print0 | xargs -0 rm -r -f
Expand Down
3 changes: 2 additions & 1 deletion storm/storm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ mkdir -p /data/zookeeper/

tar zxvf zk.tar
cat >/opt/zk/conf/zoo.cfg<<EOF
maxClientCnxns=50
maxClientCnxns=500
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/data/zookeeper/
dataLogDir=/data/zookeeper/logs
clientPort=2181
server.1=master.storm.com:2888:3888
EOF
Expand Down

0 comments on commit 1474ec6

Please sign in to comment.