File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ replaceLogstashConfig() {
9191 sed -i " s/# http.host: \" 127.0.0.1\" / http.host: ${IP} /g" ${ELASTIC_SOFTWARE_PATH} /logstash-${version} /config/logstash.yml
9292 touch ${ELASTIC_SOFTWARE_PATH} /logstash-${version} /bin/nohup.out
9393 cd ${ELASTIC_SOFTWARE_PATH} /logstash-${version} /bin
94- wget " https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/elk/config/logstash.conf"
94+ wget " https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/elk/config/logstash.conf"
9595}
9696
9797# 替换 Kibana 配置
@@ -140,6 +140,6 @@ replaceFilebeatConfig
140140
141141# 最后,将启动脚本下载到本地
142142mkdir -p /home/zp/script
143- wget -P /home/zp/script " https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/elk/boot-elk.sh"
143+ wget -P /home/zp/script " https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/elk/boot-elk.sh"
144144# setPrivilegeForUser
145145
Original file line number Diff line number Diff line change 11# 安装 JDK
22
3- 使用方法:
3+ 使用方法:执行以下任意命令即可执行脚本。
44
55``` sh
6- curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/service/jdk/install-jdk8.sh | bash
6+ curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/jdk/install-jdk8.sh | bash
7+ wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/jdk/install-jdk8.sh | bash
78```
8- 脚本会下载解压 jdk8 到 ` /usr/lib/jvm/java ` 路径下。
Original file line number Diff line number Diff line change 55使用方法:
66
77``` sh
8- curl -o- https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/jenkins/install-jenkins.sh | bash
8+ curl -o- https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/jenkins/install-jenkins.sh | bash
99```
1010
1111脚本会下载解压 Jenkins 到 ` /opt/jenkins ` 路径下。
Original file line number Diff line number Diff line change 33使用方法:
44
55``` sh
6- curl -o- https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/kafka/install-kafka.sh | bash
6+ curl -o- https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/kafka/install-kafka.sh | bash
77```
88
99脚本会下载解压 kafka 到 ` /opt/kafka ` 路径下。
Original file line number Diff line number Diff line change 33使用方法:
44
55``` sh
6- curl -o- https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/maven/install-maven3.sh | bash
6+ curl -o- https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/maven/install-maven3.sh | bash
77```
88
99脚本会下载解压 maven 到 ` /opt/maven ` 路径下。
Original file line number Diff line number Diff line change 33使用方法:
44
55``` sh
6- curl -o- https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/mongodb/install-mongodb.sh | bash
6+ curl -o- https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/mongodb/install-mongodb.sh | bash
77```
88
99脚本会下载解压 redis 到 ` /opt/mongodb ` 路径下。
Original file line number Diff line number Diff line change 55使用方法:
66
77``` sh
8- curl -o- https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/nginx/install-nginx.sh | bash
8+ curl -o- https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/nginx/install-nginx.sh | bash
99```
1010
1111脚本会下载解压 nginx 到 ` /opt/nginx ` 路径下。
@@ -15,6 +15,6 @@ curl -o- https://github.com/dunwu/os-tutorial/blob/master/codes/linux/ops/servic
1515使用方法:
1616
1717``` sh
18- curl -o- https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/nginx/install-nginx-by-yum.sh | bash
18+ curl -o- https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/nginx/install-nginx-by-yum.sh | bash
1919```
2020
Original file line number Diff line number Diff line change 33使用方法:
44
55``` sh
6- curl -o- https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/nodejs/install-nodejs.sh | bash
6+ curl -o- https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/nodejs/install-nodejs.sh | bash
77```
Original file line number Diff line number Diff line change 33使用方法:
44
55``` sh
6- curl -o- https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/redis/install-redis.sh | bash
6+ curl -o- https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/redis/install-redis.sh | bash
77```
88
99脚本会下载解压 redis 到 ` /opt/redis ` 路径下。
Original file line number Diff line number Diff line change 33使用方法:
44
55``` sh
6- curl -o- https://github. com/dunwu/os-tutorial/blob /master/codes/linux/ops/service/rocketmq/install-rocketmq.sh | bash
6+ curl -o- https://raw.githubusercontent. com/dunwu/os-tutorial/master/codes/linux/ops/service/rocketmq/install-rocketmq.sh | bash
77```
88
99脚本会下载解压 RocketMQ 到 ` /opt/rocketmq ` 路径下。
You can’t perform that action at this time.
0 commit comments