-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |