✏️ 更改路径
parent
62d2995f80
commit
e0bcef6b91
|
@ -53,10 +53,10 @@ app=$1
|
||||||
oper=$2
|
oper=$2
|
||||||
|
|
||||||
version=6.1.1
|
version=6.1.1
|
||||||
ELASTICSEARCH_BIN_PATH=/opt/software/elastic/elasticsearch-${version}/bin
|
ELASTICSEARCH_BIN_PATH=/opt/elastic/elasticsearch-${version}/bin
|
||||||
LOGSTASH_BIN_PATH=/opt/software/elastic/logstash-${version}/bin
|
LOGSTASH_BIN_PATH=/opt/elastic/logstash-${version}/bin
|
||||||
KIBANA_BIN_PATH=/opt/software/elastic/kibana-${version}-linux-x86_64/bin
|
KIBANA_BIN_PATH=/opt/elastic/kibana-${version}-linux-x86_64/bin
|
||||||
FILEBEAT_PATH=/opt/software/elastic/filebeat-${version}-linux-x86_64
|
FILEBEAT_PATH=/opt/elastic/filebeat-${version}-linux-x86_64
|
||||||
|
|
||||||
checkInput
|
checkInput
|
||||||
case ${oper} in
|
case ${oper} in
|
||||||
|
|
|
@ -120,9 +120,9 @@ setPrivilegeForUser() {
|
||||||
echo -e "\n>>>>>>>>> install elk"
|
echo -e "\n>>>>>>>>> install elk"
|
||||||
|
|
||||||
version=6.1.1
|
version=6.1.1
|
||||||
RUBY_SOFTWARE_PATH=/opt/software/ruby
|
RUBY_SOFTWARE_PATH=/opt/ruby
|
||||||
ELASTIC_SOFTWARE_PATH=/opt/software/elastic
|
ELASTIC_SOFTWARE_PATH=/opt/elastic
|
||||||
ELASTIC_SETTINGS_PATH=/opt/software/elastic/settings
|
ELASTIC_SETTINGS_PATH=/opt/elastic/settings
|
||||||
|
|
||||||
init
|
init
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ chmod -R 777 install-jdk8.sh
|
||||||
./install-jdk8.sh
|
./install-jdk8.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 jdk8 到 `/opt/software/java` 路径下。
|
脚本会下载解压 jdk8 到 `/opt/java` 路径下。
|
||||||
|
|
||||||
## Centos 安装JDK脚本
|
## Centos 安装JDK脚本
|
||||||
|
|
||||||
|
|
|
@ -3,21 +3,21 @@
|
||||||
###################################################################################
|
###################################################################################
|
||||||
# 安装 JDK8 脚本
|
# 安装 JDK8 脚本
|
||||||
# 适用于所有 linux 发行版本。
|
# 适用于所有 linux 发行版本。
|
||||||
# JDK 会被安装到 /opt/software/java/jdk1.8.0_162 路径。
|
# JDK 会被安装到 /opt/java/jdk1.8.0_162 路径。
|
||||||
# Author: Zhang Peng
|
# Author: Zhang Peng
|
||||||
###################################################################################
|
###################################################################################
|
||||||
|
|
||||||
echo -e "\n>>>>>>>>> install jdk8"
|
echo -e "\n>>>>>>>>> install jdk8"
|
||||||
|
|
||||||
mkdir -p /opt/software/java
|
mkdir -p /opt/java
|
||||||
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" -O /opt/software/java/jdk-8u162-linux-x64.tar.gz http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz
|
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" -O /opt/java/jdk-8u162-linux-x64.tar.gz http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz
|
||||||
|
|
||||||
cd /opt/software/java
|
cd /opt/java
|
||||||
tar -zxvf jdk-8u162-linux-x64.tar.gz
|
tar -zxvf jdk-8u162-linux-x64.tar.gz
|
||||||
|
|
||||||
cat >> /etc/profile << EOF
|
cat >> /etc/profile << EOF
|
||||||
|
|
||||||
export JAVA_HOME=/opt/software/java/jdk1.8.0_162
|
export JAVA_HOME=/opt/java/jdk1.8.0_162
|
||||||
export PATH=\$JAVA_HOME/bin:\$PATH
|
export PATH=\$JAVA_HOME/bin:\$PATH
|
||||||
export CLASSPATH=.:\$JAVA_HOME/lib/dt.jar:\$JAVA_HOME/lib/tools.jar
|
export CLASSPATH=.:\$JAVA_HOME/lib/dt.jar:\$JAVA_HOME/lib/tools.jar
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -10,4 +10,4 @@ chmod -R 777 install-jenkins.sh
|
||||||
./install-jenkins.sh
|
./install-jenkins.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 Jenkins 到 `/opt/software/jenkins` 路径下。
|
脚本会下载解压 Jenkins 到 `/opt/jenkins` 路径下。
|
||||||
|
|
|
@ -9,5 +9,5 @@
|
||||||
echo -e "\n>>>>>>>>> install jenkins"
|
echo -e "\n>>>>>>>>> install jenkins"
|
||||||
|
|
||||||
# 下载并解压 jenkins
|
# 下载并解压 jenkins
|
||||||
mkdir -p /opt/software/jenkins
|
mkdir -p /opt/jenkins
|
||||||
wget -O /opt/software/jenkins/jenkins.war http://mirrors.jenkins.io/war-stable/latest/jenkins.war
|
wget -O /opt/jenkins/jenkins.war http://mirrors.jenkins.io/war-stable/latest/jenkins.war
|
||||||
|
|
|
@ -8,4 +8,4 @@ chmod -R 777 install-kafka.sh
|
||||||
./install-kafka.sh
|
./install-kafka.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 kafka 到 `/opt/software/kafka` 路径下。
|
脚本会下载解压 kafka 到 `/opt/kafka` 路径下。
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# 下载并解压 kafka
|
# 下载并解压 kafka
|
||||||
echo -e "\n>>>>>>>>> install kafka"
|
echo -e "\n>>>>>>>>> install kafka"
|
||||||
|
|
||||||
root=/opt/software/kafka
|
root=/opt/kafka
|
||||||
version=2.11-1.1.0
|
version=2.11-1.1.0
|
||||||
mkdir -p ${root}
|
mkdir -p ${root}
|
||||||
wget -O ${root}/kafka_${version}.tgz http://mirrors.shu.edu.cn/apache/kafka/1.1.0/kafka_${version}.tgz
|
wget -O ${root}/kafka_${version}.tgz http://mirrors.shu.edu.cn/apache/kafka/1.1.0/kafka_${version}.tgz
|
||||||
|
|
|
@ -8,4 +8,4 @@ chmod -R 777 install-maven3.sh
|
||||||
./install-maven3.sh
|
./install-maven3.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 maven 到 `/opt/software/maven` 路径下。
|
脚本会下载解压 maven 到 `/opt/maven` 路径下。
|
||||||
|
|
|
@ -3,22 +3,22 @@
|
||||||
###################################################################################
|
###################################################################################
|
||||||
# 安装 Maven 脚本
|
# 安装 Maven 脚本
|
||||||
# 适用于所有 linux 发行版本。
|
# 适用于所有 linux 发行版本。
|
||||||
# Maven 会被安装到 /opt/software/maven 路径。
|
# Maven 会被安装到 /opt/maven 路径。
|
||||||
# 注意:Maven 要求必须先安装 JDK
|
# 注意:Maven 要求必须先安装 JDK
|
||||||
# Author: Zhang Peng
|
# Author: Zhang Peng
|
||||||
###################################################################################
|
###################################################################################
|
||||||
|
|
||||||
echo -e "\n>>>>>>>>> install maven"
|
echo -e "\n>>>>>>>>> install maven"
|
||||||
|
|
||||||
mkdir -p /opt/software/maven
|
mkdir -p /opt/maven
|
||||||
cd /opt/software/maven
|
cd /opt/maven
|
||||||
|
|
||||||
version=3.2.5
|
version=3.2.5
|
||||||
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.tar.gz
|
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.tar.gz
|
||||||
tar -zxvf apache-maven-${version}-bin.tar.gz
|
tar -zxvf apache-maven-${version}-bin.tar.gz
|
||||||
|
|
||||||
cat >> /etc/profile << EOF
|
cat >> /etc/profile << EOF
|
||||||
export MAVEN_HOME=/opt/software/maven/apache-maven-${version}
|
export MAVEN_HOME=/opt/maven/apache-maven-${version}
|
||||||
export PATH=\$MAVEN_HOME/bin:\$PATH
|
export PATH=\$MAVEN_HOME/bin:\$PATH
|
||||||
EOF
|
EOF
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
|
|
|
@ -8,4 +8,4 @@ chmod -R 777 install-mongodb.sh
|
||||||
./install-mongodb.sh
|
./install-mongodb.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 redis 到 `/opt/software/mongodb` 路径下。
|
脚本会下载解压 redis 到 `/opt/mongodb` 路径下。
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
echo -e "\n>>>>>>>>> install mongodb"
|
echo -e "\n>>>>>>>>> install mongodb"
|
||||||
|
|
||||||
# 下载并解压 mongodb
|
# 下载并解压 mongodb
|
||||||
root=/opt/software/mongodb
|
root=/opt/mongodb
|
||||||
version=3.6.3
|
version=3.6.3
|
||||||
mkdir -p ${root}
|
mkdir -p ${root}
|
||||||
wget -O ${root}/mongodb-linux-x86_64-${version}.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${version}.tgz
|
wget -O ${root}/mongodb-linux-x86_64-${version}.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${version}.tgz
|
||||||
|
|
|
@ -10,7 +10,7 @@ chmod -R 777 install-nginx.sh
|
||||||
./install-nginx.sh
|
./install-nginx.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 nginx 到 `/opt/software/nginx` 路径下。
|
脚本会下载解压 nginx 到 `/opt/nginx` 路径下。
|
||||||
|
|
||||||
## Centos 安装 nginx 脚本
|
## Centos 安装 nginx 脚本
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
###################################################################################
|
###################################################################################
|
||||||
# 安装 nginx 脚本
|
# 安装 nginx 脚本
|
||||||
# 适用于所有 linux 发行版本。
|
# 适用于所有 linux 发行版本。
|
||||||
# nginx 会被安装到 /opt/software/nginx 路径。
|
# nginx 会被安装到 /opt/nginx 路径。
|
||||||
# 注意:安装 nginx 需要依赖以下库,需预先安装:
|
# 注意:安装 nginx 需要依赖以下库,需预先安装:
|
||||||
# zlib zlib-devel gcc-c++ libtool openssl openssl-devel
|
# zlib zlib-devel gcc-c++ libtool openssl openssl-devel
|
||||||
# Author: Zhang Peng
|
# Author: Zhang Peng
|
||||||
|
@ -12,12 +12,12 @@
|
||||||
echo -e "\n>>>>>>>>> install nginx"
|
echo -e "\n>>>>>>>>> install nginx"
|
||||||
|
|
||||||
# 首先要安装 PCRE,PCRE 作用是让 nginx 支持 Rewrite 功能
|
# 首先要安装 PCRE,PCRE 作用是让 nginx 支持 Rewrite 功能
|
||||||
pcreRoot=/opt/software/pcre
|
pcreRoot=/opt/pcre
|
||||||
pcreVersion=8.35
|
pcreVersion=8.35
|
||||||
./install-pcre.sh ${pcreRoot} ${pcreVersion}
|
./install-pcre.sh ${pcreRoot} ${pcreVersion}
|
||||||
|
|
||||||
# 下载并解压 nginx
|
# 下载并解压 nginx
|
||||||
ngixnRoot=/opt/software/nginx
|
ngixnRoot=/opt/nginx
|
||||||
nginxVersion=1.12.2
|
nginxVersion=1.12.2
|
||||||
mkdir -p ${ngixnRoot}
|
mkdir -p ${ngixnRoot}
|
||||||
wget -O ${ngixnRoot}/nginx-${nginxVersion}.tar.gz http://nginx.org/download/nginx-${nginxVersion}.tar.gz
|
wget -O ${ngixnRoot}/nginx-${nginxVersion}.tar.gz http://nginx.org/download/nginx-${nginxVersion}.tar.gz
|
||||||
|
|
|
@ -8,4 +8,4 @@ chmod -R 777 install-redis.sh
|
||||||
./install-redis.sh
|
./install-redis.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 redis 到 `/opt/software/redis` 路径下。
|
脚本会下载解压 redis 到 `/opt/redis` 路径下。
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
echo -e "\n>>>>>>>>> install redis"
|
echo -e "\n>>>>>>>>> install redis"
|
||||||
|
|
||||||
# 下载并解压 redis
|
# 下载并解压 redis
|
||||||
root=/opt/software/redis
|
root=/opt/redis
|
||||||
version=4.0.8
|
version=4.0.8
|
||||||
mkdir -p ${root}
|
mkdir -p ${root}
|
||||||
wget -O ${root}/redis-${version}.tar.gz http://download.redis.io/releases/redis-${version}.tar.gz
|
wget -O ${root}/redis-${version}.tar.gz http://download.redis.io/releases/redis-${version}.tar.gz
|
||||||
|
|
|
@ -8,4 +8,4 @@ chmod -R 777 install-rocketmq.sh
|
||||||
./install-rocketmq.sh
|
./install-rocketmq.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 RocketMQ 到 `/opt/software/rocketmq` 路径下。
|
脚本会下载解压 RocketMQ 到 `/opt/rocketmq` 路径下。
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# 下载并解压 rocketmq
|
# 下载并解压 rocketmq
|
||||||
echo -e "\n>>>>>>>>> install rocketmq"
|
echo -e "\n>>>>>>>>> install rocketmq"
|
||||||
|
|
||||||
root=/opt/software/rocketmq
|
root=/opt/rocketmq
|
||||||
version=4.2.0
|
version=4.2.0
|
||||||
mkdir -p ${root}
|
mkdir -p ${root}
|
||||||
wget -O ${root}/rocketmq-all-${version}-bin-release.zip http://mirrors.hust.edu.cn/apache/rocketmq/${version}/rocketmq-all-${version}-bin-release.zip
|
wget -O ${root}/rocketmq-all-${version}-bin-release.zip http://mirrors.hust.edu.cn/apache/rocketmq/${version}/rocketmq-all-${version}-bin-release.zip
|
||||||
|
|
|
@ -10,4 +10,4 @@ chmod -R 777 install-tomcat8.sh
|
||||||
./install-tomcat8.sh
|
./install-tomcat8.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 tomcat 到 `/opt/software/tomcat` 路径下。
|
脚本会下载解压 tomcat 到 `/opt/tomcat` 路径下。
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
echo -e "\n>>>>>>>>> install tomcat"
|
echo -e "\n>>>>>>>>> install tomcat"
|
||||||
|
|
||||||
# 下载并解压 redis
|
# 下载并解压 redis
|
||||||
root=/opt/software/tomcat
|
root=/opt/tomcat
|
||||||
version=8.5.28
|
version=8.5.28
|
||||||
mkdir -p ${root}
|
mkdir -p ${root}
|
||||||
wget -O ${root}/apache-tomcat-${version}.tar.gz http://archive.apache.org/dist/tomcat/tomcat-8/${version}/bin/apache-tomcat-${version}.tar.gz
|
wget -O ${root}/apache-tomcat-${version}.tar.gz http://archive.apache.org/dist/tomcat/tomcat-8/${version}/bin/apache-tomcat-${version}.tar.gz
|
||||||
|
|
|
@ -8,4 +8,4 @@ chmod -R 777 install-zookeeper.sh
|
||||||
./install-zookeeper.sh
|
./install-zookeeper.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
脚本会下载解压 zookeeper 到 `/opt/software/zookeeper` 路径下。
|
脚本会下载解压 zookeeper 到 `/opt/zookeeper` 路径下。
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
echo -e "\n>>>>>>>>> install zookeeper"
|
echo -e "\n>>>>>>>>> install zookeeper"
|
||||||
|
|
||||||
root=/opt/software/zookeeper
|
root=/opt/zookeeper
|
||||||
version=3.4.12
|
version=3.4.12
|
||||||
mkdir -p ${root}
|
mkdir -p ${root}
|
||||||
wget -O ${root}/zookeeper-${version}.tar.gz http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-${version}/zookeeper-${version}.tar.gz
|
wget -O ${root}/zookeeper-${version}.tar.gz http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-${version}/zookeeper-${version}.tar.gz
|
||||||
|
|
Loading…
Reference in New Issue