--type: Type of plugin - input, filter, output, or codec --name: Name for the new plugin --path: Directory path where the new plugin structure will be created. If not specified, it will be created in the current directory.
[root@localhost app]# tar xzf haproxy-1.7.2.tar.gz [root@localhost app]# cd haproxy-1.7.2 [root@localhost haproxy-1.7.2]# make TARGET=generic PREFIX=/mnt/app/haproxy [root@localhost haproxy-1.7.2]# make install PREFIX=/mnt/app/haproxy
haproxy 环境变量
1 2 3 4
[root@localhost haproxy-1.7.2]# echo 'export HAPROXY_HOME=/mnt/app/haproxy' | tee /etc/profile.d/haproxy.sh [root@localhost haproxy-1.7.2]# echo 'export HAPROXY_BIN=${HAPROXY_HOME}/sbin' | tee -a /etc/profile.d/haproxy.sh [root@localhost haproxy-1.7.2]# echo 'export PATH=${HAPROXY_BIN}:$PATH' | tee -a /etc/profile.d/haproxy.sh [root@localhost haproxy-1.7.2]# source /etc/profile
listen rabbitmq_admin bind 0.0.0.0:8090 server rabbit228 192.168.18.228:15672 server rabbit229 192.168.18.229:15672 server rabbit230 192.168.18.230:15672
listen rabbitmq_cluster bind 0.0.0.0:5672 mode tcp option tcplog option clitcpka timeout client 3h timeout server 3h balance roundrobin server rabbit228 192.168.18.228:15672 check inter 5s rise 2 fall 3 server rabbit229 192.168.18.229:15672 check inter 5s rise 2 fall 3 server rabbit230 192.168.18.230:15672 check inter 5s rise 2 fall 3
[root@localhost app]# tar xzf jdk-8u111-linux-x64.tar.gz [root@localhost app]# mv jdk1.8.0_111 /mnt/app/java [root@localhost app]# echo 'JAVA_HOME=/mnt/app/java' | tee /etc/profile.d/java.sh [root@localhost app]# echo 'JRE_HOME=${JAVA_HOME}/jre' | tee -a /etc/profile.d/java.sh [root@localhost app]# echo 'CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib' | tee -a /etc/profile.d/java.sh [root@localhost app]# echo 'export PATH=${JAVA_HOME}/bin:$PATH' | tee -a /etc/profile.d/java.sh [root@localhost app]# source /etc/profile [root@localhost app]# java -version
Erlang 安装
1 2 3 4 5 6 7 8 9 10
[root@localhost app]# tar xzf otp_src_19.2.tar.gz [root@localhost app]# cd otp_src_19.2 [root@localhost otp_src_19.2]# ./configure --prefix=/mnt/app/erlang [root@localhost otp_src_19.2]# make [root@localhost otp_src_19.2]# make install
[root@localhost otp_src_19.2]# echo 'export ERLANG_HOME=/mnt/app/erlang' | tee /etc/profile.d/erlang.sh [root@localhost otp_src_19.2]# echo 'export ERLANG_BIN=${ERLANG_HOME}/bin' | tee -a /etc/profile.d/erlang.sh [root@localhost otp_src_19.2]# echo 'export PATH=${ERLANG_BIN}:$PATH' | tee -a /etc/profile.d/erlang.sh [root@localhost otp_src_19.2]# source /etc/profile
[root@localhost app]# tar xzf haproxy-1.7.2.tar.gz [root@localhost app]# cd haproxy-1.7.2 [root@localhost haproxy-1.7.2]# make TARGET=generic PREFIX=/mnt/app/haproxy [root@localhost haproxy-1.7.2]# make install PREFIX=/mnt/app/haproxy
//haproxy 环境变量设置 [root@localhost haproxy-1.7.2]# echo 'export HAPROXY_HOME=/mnt/app/haproxy' | tee /etc/profile.d/haproxy.sh [root@localhost haproxy-1.7.2]# echo 'export HAPROXY_BIN=${HAPROXY_HOME}/sbin' | tee -a /etc/profile.d/haproxy.sh [root@localhost haproxy-1.7.2]# echo 'export PATH=${HAPROXY_BIN}:$PATH' | tee -a /etc/profile.d/haproxy.sh [root@localhost haproxy-1.7.2]# source /etc/profile
listen rabbitmq_admin bind 0.0.0.0:8090 server rabbit228 192.168.18.228:15672 server rabbit229 192.168.18.229:15672 server rabbit230 192.168.18.230:15672
listen rabbitmq_cluster bind 0.0.0.0:5672 mode tcp option tcplog option clitcpka timeout client 3h timeout server 3h balance roundrobin server rabbit228 192.168.18.228:15672 check inter 5s rise 2 fall 3 server rabbit229 192.168.18.229:15672 check inter 5s rise 2 fall 3 server rabbit230 192.168.18.230:15672 check inter 5s rise 2 fall 3
[wisdom@10 ~]$ /mnt/app/logstash/bin/logstash -f /mnt/app/logstash/conf/test.conf --configtest Configuration OK
logstash 测试
1 2 3 4 5
[wisdom@10 ~]$ /mnt/app/logstash/bin/logstash -f /mnt/app/logstash/conf/test.conf Settings: Default pipeline workers: 1 Pipeline main started hello world =>输入字符串 2016-10-12T09:16:18.058Z ubuntu hello world
logstash 设置启动需要的内存大小
1 2
[wisdom@10 ~]$ vim /mnt/app/logstash/bin/logstash LS_HEAP_SIZE="8G"
The –pipeline-workers or -w parameter determines how many threads to run for filter and output processing.If you find that events are backing up, or that the CPU is not saturated, consider increasing the value of this parameter to make better use of available processing power.
The –pipeline-batch-size or -b parameter defines the maximum number of events an individual worker thread collects before attempting to execute filters and outputs. Larger batch sizes are generally more efficient, but increase memory overhead.
The –pipeline-batch-delay option rarely needs to be tuned. Pipeline batch delay is the maximum amount of time in milliseconds that Logstash waits for new messages after receiving an event in the current pipeline worker thread. After this time elapses, Logstash begins to execute filters and outputs. ``
[root@10 ~]# /mnt/app/mysql/bin/mysql -S /mnt/data/mysql/mysql.sock mysql> create database grafana DEFAULT CHARACTER SET utf8; mysql> GRANT ALL ON grafana.* TO 'grafana'@'10.0.2.113' IDENTIFIED BY "grafana123"; mysql> flush privileges;
grafana 安装
1 2 3 4 5 6 7
[root@10 ~]# cd /mnt/ops/app/ [root@10 app]# tar xzf grafana-4.0.1-1480694114.linux-x64.tar.gz [root@10 app]# mv grafana-4.0.1-1480694114 /mnt/app/grafana [root@10 app]# chown -R wisdom.wisdom /mnt/app/grafana