Skip to content

Instantly share code, notes, and snippets.

View abola's full-sized avatar

Abola Lee abola

  • deltaww.com
  • Taipei, Taiwan
View GitHub Profile
wget http://apache.stu.edu.tw/zookeeper/zookeeper-3.4.7/zookeeper-3.4.7.tar.gz
tar zxvf zookeeper-3.4.7.tar.gz
cd zookeeper-3.4.7/
cp conf/zoo_sample.cfg conf/zoo.cfg
echo "server.1=10.240.0.2:2888:3888" >> conf/zoo.cfg
echo "server.2=10.240.0.3:2888:3888" >> conf/zoo.cfg
echo "server.3=10.240.0.4:2888:3888" >> conf/zoo.cfg
@abola
abola / kafka-benchmark.sh
Last active January 5, 2016 06:35
kafka 效能測試
# 安裝JDK
yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
# 安裝 KAFKA
cd /opt
wget http://ftp.tc.edu.tw/pub/Apache/kafka/0.8.2.2/kafka_2.11-0.8.2.2.tgz
tar zxvf kafka_2.11-0.8.2.2.tgz
cd kafka_2.11-0.8.2.2
# 啟動 ZooKeeper & Kafka
bin/zookeeper-server-start.sh config/zookeeper.properties &
@abola
abola / JenkinsFullBackup.sh
Last active October 1, 2022 19:44
Jenkins Full Backup Script
#!/bin/sh
###
# Easy Jenkins backup script
#
# Save script and named JenkinsFullBackup.sh
# chmod +x JenkinsFullBackup.sh
#
# Which path of your jenkins install
JENKINS_HOME=/var/lib/jenkins