This file contains hidden or 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
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 |
This file contains hidden or 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
# 安裝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 & |
This file contains hidden or 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
#!/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 |
NewerOlder