运维工具
系统备份和恢复
Clonezilla
install clonezilla network boot system
clonezilla push setting
clonezilla pxelinux.cfg default config
clonezilla pxe boot password
kickstart
kickstart centos5.6-i386 config
kickstart auto install
kickstart example
Cobbler
cobbler backups-restore
aomei 傲梅
傲梅集中备份
傲梅备份 分类
系统监控工具
collectd
collectd 收集系统性能
NMON monitor
Nmon monitor system
njmon script initd code
nmon 2 data to influx db
Zabbix
zabbix 3.2 install on centos 6
zabbix firewall
zabbix support windows
Supervisor
supervisor shell script
supervisor config example
boot supervisrd with systemd on centos7
webhook and github to do file sync with supervisor
日志管理系统
Grafana
grafana install on centos 6
grafana install plugin
grafana influx version
Filebeat
filebeat yum install
Kibana
kibana yum install
Logstash
logstash install on centos
Elasticsearch
yum install elasticsearch 6.8
elasticsearch install on Centos 6.7
ELK init env config
Elasticsearch 错误集锦
Rsyslog
centos 6 rsyslog 日志实时同步
Rsyslog mysql log to master analyzer
Deploy
Jumpserver
jumpserver 0.3.2 install on centos 6
jumpserver 0.3.2 docker install on centos 7
jumpserver 0.5 install on centos 7
Opsmanage
opsmanage install centos7
Jenkins
jenkins install on centos 6
install plugin in jenkins…
jenkins set time execution
tomcat jenkins ansible
jenkins ansible ad-hoc command
jenkins ansible playbook project
jenkins publish over_ssh
Paramike
PSSH
Centos7部署工具pssh
Ansible
how to install ansible with yum
bit rpm install ansible
source to install ansible
ansible init system centos 6
ansible using method
ansible install httpd servers
copy code with ansible-playbook
ansible ping host actived
ansible add username
ansible config parameter
ansible config write format
ansible api study
ansible hosts config ssh
ansible get nmon data
ansible setup filter information
yum repo with ansible-playbook
ansible gitlab ci runner
ansible get data list
ansible get text content
ansible get linux release debug infor
ansible support windows pywinrm
Saltshaker
saltshaker use docker
how to install saltstack
saltshaker manual install
salt install and config
salt init system
deploy saltshaker on centos7
salt file config desc
salt cmdb
saltshaker dj mq mysql build
salt data to mysql
Rsync
rsync + inotify 数据实时同步
代码仓库
Gitlab
yum install gitlab
gitlab-ce and runner
gitlib api example
gitlab config
gitlab ce and ee
Gogs
Gitea
虚拟化系统
Vmware
centos 6 install vmware 14
Vagrant
从零开始创建基础 Box
打包我的 BOX
Vagrantfile Config
Vagrant简易教程
给 Vagrant 从 VirtualBox换用 VMware 或 虚拟机
优化 vagrantFile config
Vagrant 主机定义
vagrant SSH
Vagrant 搭建 说明
WSL
pycharm 安装支持 WSL
windows-WSL 安装
Docker
how to install docker on centos 6
docker config source daoclound
how to use docker by step
how to creat docker subnet
gogs deploy on docker
jenkins use docker to deploy
mysql use docker to deploy
docker-example-1
docker-example-2
mac-osx-toolbox-install-docker
Data DB
Influx DB
InfluxDB install on centos
Mysql DB
centos 6 install mysql 5.5
mysql 5.7 install centos 6
install percona mysql 5.6 with yum
centos 7 install mysql config
mysql data rsync from master/slave
About me
本文档使用 MrDoc 发布
-
+
首页
kibana yum install
# yum deploy install kibana ## yum install kibana # yum install kibana # wget https://artifacts.elastic.co/downloads/kibana/kibana-6.8.3-x86_64.rpm # yum localinstall kibana-6.8.3-x86_64.rpm ## edit init server # vim /etc/init.d/kibana # vim /etc/kibana/kibana.yml ```bash server.port: 5601 server.host: "127.0.0.1" ``` ## nginx proxy kibana # yum install nginx # yum install -y httpd-tools ## nginx proxy content ```bash upstream kibana_server { server 127.0.0.1:5601 weight=1 max_fails=3 fail_timeout=60; } server { listen 80; server_name 10.x.x.x; auth_basic "Restricted Access"; auth_basic_user_file /etc/nginx/conf.d/htpass.txt; location / { allow 127.0.0.1; # only master kibana view proxy_pass http://kibana_server; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } } ``` # htpasswd -bc /etc/nginx/conf.d/htpass.txt admin admin # pwd /etc/nginx/conf.d # cat htpass.txt admin:rUc35hh4fcuW2 --- ## yum install kibana infor # ll /usr/share/kibana/ ```bash total 1832 drwxr-xr-x 2 root root 4096 Oct 11 17:00 bin drwxr-xr-x 4 root root 4096 Oct 11 17:00 built_assets -rw-rw-r-- 1 root root 13675 Aug 30 03:54 LICENSE.txt drwxr-xr-x 6 root root 4096 Oct 11 17:00 node drwxr-xr-x 1166 root root 36864 Oct 11 17:00 node_modules -rw-rw-r-- 1 root root 1780017 Aug 30 03:54 NOTICE.txt drwxr-xr-x 3 kibana kibana 4096 Oct 11 17:00 optimize -rw-rw-r-- 1 root root 776 Aug 30 03:54 package.json drwxrwxr-x 2 kibana kibana 4096 Aug 30 03:54 plugins -rw-rw-r-- 1 root root 4038 Aug 30 03:54 README.txt drwxr-xr-x 15 root root 4096 Oct 11 17:00 src drwxr-xr-x 3 root root 4096 Oct 11 17:00 target drwxr-xr-x 2 root root 4096 Oct 11 17:00 webpackShims ``` ## init.d script ```bash #!/bin/sh # Init script for kibana # Maintained by # Generated by pleaserun. # Implemented based on LSB Core 3.1: # * Sections: 20.2, 20.3 # ### BEGIN INIT INFO # Provides: kibana # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: # Description: Kibana ### END INIT INFO name=kibana program=/usr/share/kibana/bin/kibana args=-c\\\ /etc/kibana/kibana.yml pidfile="/var/run/$name.pid" [ -r /etc/default/$name ] && . /etc/default/$name [ -r /etc/sysconfig/$name ] && . /etc/sysconfig/$name export NODE_OPTIONS [ -z "$nice" ] && nice=0 trace() { logger -t "/etc/init.d/kibana" "$@" } emit() { trace "$@" echo "$@" } start() { # Ensure the log directory is setup correctly. [ ! -d "/var/log/kibana/" ] && mkdir "/var/log/kibana/" chown "$user":"$group" "/var/log/kibana/" chmod 755 "/var/log/kibana/" # Setup any environmental stuff beforehand # Run the program! chroot --userspec "$user":"$group" "$chroot" sh -c " cd \"$chdir\" exec \"$program\" $args " >> /var/log/kibana/kibana.stdout 2>> /var/log/kibana/kibana.stderr & # Generate the pidfile from here. If we instead made the forked process # generate it there will be a race condition between the pidfile writing # and a process possibly asking for status. echo $! > $pidfile emit "$name started" return 0 } stop() { # Try a few times to kill TERM the program if status ; then pid=$(cat "$pidfile") trace "Killing $name (pid $pid) with SIGTERM" kill -TERM $pid # Wait for it to exit. for i in 1 2 3 4 5 ; do trace "Waiting $name (pid $pid) to die..." status || break sleep 1 done if status ; then if [ "$KILL_ON_STOP_TIMEOUT" -eq 1 ] ; then trace "Timeout reached. Killing $name (pid $pid) with SIGKILL. This may result in data loss." kill -KILL $pid emit "$name killed with SIGKILL." else emit "$name stop failed; still running." fi else emit "$name stopped." fi fi } status() { if [ -f "$pidfile" ] ; then pid=$(cat "$pidfile") if ps -p $pid > /dev/null 2> /dev/null ; then # process by this pid is running. # It may not be our pid, but that's what you get with just pidfiles. # TODO(sissel): Check if this process seems to be the same as the one we # expect. It'd be nice to use flock here, but flock uses fork, not exec, # so it makes it quite awkward to use in this case. return 0 else return 2 # program is dead but pid file exists fi else return 3 # program is not running fi } force_stop() { if status ; then stop status && kill -KILL $(cat "$pidfile") fi } case "$1" in force-start|start|stop|force-stop|restart) trace "Attempting '$1' on kibana" ;; esac case "$1" in force-start) PRESTART=no exec "$0" start ;; start) status code=$? if [ $code -eq 0 ]; then emit "$name is already running" exit $code else start exit $? fi ;; stop) stop ;; force-stop) force_stop ;; status) status code=$? if [ $code -eq 0 ] ; then emit "$name is running" else emit "$name is not running" fi exit $code ;; restart) stop && start ;; *) echo "Usage: $SCRIPTNAME {start|force-start|stop|force-start|force-stop|status|restart}" >&2 exit 3 ;; esac exit $? ```
Bobby
2021年12月20日 01:07
分享文档
收藏文档
阅读
110
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码