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 |
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
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
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemin | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /etc/nginx/nginx.conf | |
# pidfile: /var/run/nginx.pid |
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 | |
# required install | |
yum -y groupinstall 'Development Tools' | |
yum -y install wget patch git | |
yum -y install pcre-devel zlib-devel openssl-devel | |
# nginx download | |
wget http://nginx.org/download/nginx-1.8.1.tar.gz | |
tar zxvf nginx-1.8.1.tar.gz |
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 | |
### | |
# This script will install wordpress on a pure CentOS 6.7 minimal | |
# | |
# Step 1. create a file and copy code from this Gist | |
# 2. check every configuration right | |
# 3. Do it! | |
# ex: /bin/sh /path/to/wp-install.sh | |
### | |
# @author Abola Lee<[email protected]> |
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 | |
JENKINS_VERSION="2.0-rc-1" | |
### | |
# Automatic install docker with script | |
# @see <a href="https://docs.docker.com/engine/installation/linux/centos/">Installation on CentOS</a> | |
## | |
curl -fsSL https://get.docker.com/ | sh | |
# start docker.service | |
systemctl start docker |
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
### | |
# Disable SElinux | |
# | |
mv /etc/selinux/config /etc/selinux/config.ori | |
echo "SELINUX=disabled" > /etc/selinux/config | |
echo "SELINUXTYPE=targeted" >> /etc/selinux/config | |
### | |
# Install NTP service |
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 | |
### | |
# This script will install wordpress on a pure CentOS 6.7 minimal | |
# | |
# Step 1. create a file and copy code from this Gist | |
# 2. check every configuration right | |
# 3. Do it! | |
# ex: /bin/sh /path/to/wp-install.sh | |
### | |
# @author Abola Lee<[email protected]> |
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
# start | |
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist | |
# stop | |
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist |
OlderNewer