Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabc committed Jun 14, 2018
1 parent ee12ed3 commit 34bd7af
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README_osc.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
- Linux下很多操作命令,都可以根据业务需求通用化,脚本化,关键是思路,很多LAMP/LNMP一键安装包,也是这样。
- 脚本化后,可以结合一些自动化工具,批量部署,比如可以用ansible来批量执行脚本,就可以批量部署服务器业务。
- 这里面的脚本是运维经常使用的脚本,方便大家使用!

## 快捷运维官方地址
- 开源中国●码云地址:https://gitee.com/aqztcom/docker-alpine
- Github地址:https://github.com/aqzt/docker-alpine
- 相关使用文档:https://bbs.aqzt.com/forum-39-1.html

## 为什么要做快捷运维?
Expand Down
23 changes: 23 additions & 0 deletions elk/elk6.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
# Author: ppabc <ppabc AT qq.com>
# Blog: http://ppabc.cn
#

##添加Elasticsearch 源
cat > /etc/yum.repos.d/elk6.repo<<EOF
[elastic-6.x]
name=Elastic repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
EOF

##yum安装
yum install tree wget bash-c* epel* -y
yum clean ; yum makecache
yum update -y ; init 6
yum install java-1.8.0-openjdk kibana logstash elasticsearch -y

7 changes: 7 additions & 0 deletions elk/kibana-cn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[[ -f /usr/bin/git ]] || { echo 'install git';yum install -y git &>/dev/null; }
git clone https://github.com/anbai-inc/Kibana_Hanization.git
cd Kibana_Hanization
python main.py /usr/share/kibana

#重启kibana
systemctl restart kibana

0 comments on commit 34bd7af

Please sign in to comment.