From 3979cb6daf9d7f4bc22ba341fb78df73e855b3e8 Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Fri, 22 Feb 2019 11:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/linux/ops/service/elk/install-elk.sh | 4 ++-- codes/linux/ops/service/jdk/README.md | 6 +++--- codes/linux/ops/service/jenkins/README.md | 2 +- codes/linux/ops/service/kafka/README.md | 2 +- codes/linux/ops/service/maven/README.md | 2 +- codes/linux/ops/service/mongodb/README.md | 2 +- codes/linux/ops/service/nginx/README.md | 4 ++-- codes/linux/ops/service/nodejs/README.md | 2 +- codes/linux/ops/service/redis/README.md | 2 +- codes/linux/ops/service/rocketmq/README.md | 2 +- codes/linux/ops/service/tomcat/README.md | 4 ++-- codes/linux/ops/service/zookeeper/README.md | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/codes/linux/ops/service/elk/install-elk.sh b/codes/linux/ops/service/elk/install-elk.sh index 2fa61c9..289fdc7 100644 --- a/codes/linux/ops/service/elk/install-elk.sh +++ b/codes/linux/ops/service/elk/install-elk.sh @@ -91,7 +91,7 @@ replaceLogstashConfig() { sed -i "s/# http.host: \"127.0.0.1\"/ http.host: ${IP}/g" ${ELASTIC_SOFTWARE_PATH}/logstash-${version}/config/logstash.yml touch ${ELASTIC_SOFTWARE_PATH}/logstash-${version}/bin/nohup.out cd ${ELASTIC_SOFTWARE_PATH}/logstash-${version}/bin - wget "https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/elk/config/logstash.conf" + wget "https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/elk/config/logstash.conf" } # 替换 Kibana 配置 @@ -140,6 +140,6 @@ replaceFilebeatConfig # 最后,将启动脚本下载到本地 mkdir -p /home/zp/script -wget -P /home/zp/script "https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/elk/boot-elk.sh" +wget -P /home/zp/script "https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/elk/boot-elk.sh" #setPrivilegeForUser diff --git a/codes/linux/ops/service/jdk/README.md b/codes/linux/ops/service/jdk/README.md index 05d16bc..87a72eb 100644 --- a/codes/linux/ops/service/jdk/README.md +++ b/codes/linux/ops/service/jdk/README.md @@ -1,8 +1,8 @@ # 安装 JDK -使用方法: +使用方法:执行以下任意命令即可执行脚本。 ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/jdk/install-jdk8.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/jdk/install-jdk8.sh | bash +wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/jdk/install-jdk8.sh | bash ``` -脚本会下载解压 jdk8 到 `/usr/lib/jvm/java` 路径下。 diff --git a/codes/linux/ops/service/jenkins/README.md b/codes/linux/ops/service/jenkins/README.md index 88da5a0..69e2913 100644 --- a/codes/linux/ops/service/jenkins/README.md +++ b/codes/linux/ops/service/jenkins/README.md @@ -5,7 +5,7 @@ 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/jenkins/install-jenkins.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/jenkins/install-jenkins.sh | bash ``` 脚本会下载解压 Jenkins 到 `/opt/jenkins` 路径下。 diff --git a/codes/linux/ops/service/kafka/README.md b/codes/linux/ops/service/kafka/README.md index 33a5dd8..4e62728 100644 --- a/codes/linux/ops/service/kafka/README.md +++ b/codes/linux/ops/service/kafka/README.md @@ -3,7 +3,7 @@ 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/kafka/install-kafka.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/kafka/install-kafka.sh | bash ``` 脚本会下载解压 kafka 到 `/opt/kafka` 路径下。 diff --git a/codes/linux/ops/service/maven/README.md b/codes/linux/ops/service/maven/README.md index a5f11e3..be8e189 100644 --- a/codes/linux/ops/service/maven/README.md +++ b/codes/linux/ops/service/maven/README.md @@ -3,7 +3,7 @@ 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/maven/install-maven3.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/maven/install-maven3.sh | bash ``` 脚本会下载解压 maven 到 `/opt/maven` 路径下。 diff --git a/codes/linux/ops/service/mongodb/README.md b/codes/linux/ops/service/mongodb/README.md index 6b47bc8..362f672 100644 --- a/codes/linux/ops/service/mongodb/README.md +++ b/codes/linux/ops/service/mongodb/README.md @@ -3,7 +3,7 @@ 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/mongodb/install-mongodb.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/mongodb/install-mongodb.sh | bash ``` 脚本会下载解压 redis 到 `/opt/mongodb` 路径下。 diff --git a/codes/linux/ops/service/nginx/README.md b/codes/linux/ops/service/nginx/README.md index 3b40f75..eaebdc2 100644 --- a/codes/linux/ops/service/nginx/README.md +++ b/codes/linux/ops/service/nginx/README.md @@ -5,7 +5,7 @@ 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/nginx/install-nginx.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/nginx/install-nginx.sh | bash ``` 脚本会下载解压 nginx 到 `/opt/nginx` 路径下。 @@ -15,6 +15,6 @@ curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/servic 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/nginx/install-nginx-by-yum.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/nginx/install-nginx-by-yum.sh | bash ``` diff --git a/codes/linux/ops/service/nodejs/README.md b/codes/linux/ops/service/nodejs/README.md index 381154b..9bccabf 100644 --- a/codes/linux/ops/service/nodejs/README.md +++ b/codes/linux/ops/service/nodejs/README.md @@ -3,5 +3,5 @@ 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/nodejs/install-nodejs.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/nodejs/install-nodejs.sh | bash ``` diff --git a/codes/linux/ops/service/redis/README.md b/codes/linux/ops/service/redis/README.md index 342035a..39e2be8 100644 --- a/codes/linux/ops/service/redis/README.md +++ b/codes/linux/ops/service/redis/README.md @@ -3,7 +3,7 @@ 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/redis/install-redis.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/redis/install-redis.sh | bash ``` 脚本会下载解压 redis 到 `/opt/redis` 路径下。 diff --git a/codes/linux/ops/service/rocketmq/README.md b/codes/linux/ops/service/rocketmq/README.md index fa81eb1..2a43334 100644 --- a/codes/linux/ops/service/rocketmq/README.md +++ b/codes/linux/ops/service/rocketmq/README.md @@ -3,7 +3,7 @@ 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/rocketmq/install-rocketmq.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/rocketmq/install-rocketmq.sh | bash ``` 脚本会下载解压 RocketMQ 到 `/opt/rocketmq` 路径下。 diff --git a/codes/linux/ops/service/tomcat/README.md b/codes/linux/ops/service/tomcat/README.md index 020c72c..32bb78a 100644 --- a/codes/linux/ops/service/tomcat/README.md +++ b/codes/linux/ops/service/tomcat/README.md @@ -5,11 +5,11 @@ 使用方法: ```sh -wget --no-check-certificate --no-cookies https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/tomcat/install-tomcat8.sh +wget --no-check-certificate --no-cookies https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/tomcat/install-tomcat8.sh chmod -R 777 install-tomcat8.sh ./install-tomcat8.sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/tomcat/install-tomcat8.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/tomcat/install-tomcat8.sh | bash ``` 脚本会下载解压 tomcat 到 `/opt/tomcat` 路径下。 diff --git a/codes/linux/ops/service/zookeeper/README.md b/codes/linux/ops/service/zookeeper/README.md index 2a58419..e3c36ed 100644 --- a/codes/linux/ops/service/zookeeper/README.md +++ b/codes/linux/ops/service/zookeeper/README.md @@ -3,7 +3,7 @@ 使用方法: ```sh -curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/zookeeper/install-zookeeper.sh | bash +curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/zookeeper/install-zookeeper.sh | bash ``` 脚本会下载解压 zookeeper 到 `/opt/zookeeper` 路径下。