Skip to content

Commit b329017

Browse files
committed
update scripts
1 parent 2b73cbc commit b329017

File tree

17 files changed

+162
-125
lines changed

17 files changed

+162
-125
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
## 软件运维
1212

1313
> 本章节内容介绍日常开发中常见的一些软件、工具的安装、配置。
14+
>
15+
> 配套安装脚本:🐚 [软件运维配置脚本集合](https://github.com/dunwu/linux-tutorial/tree/master/codes/linux/soft)
1416
1517
- 开发环境
1618
- [JDK 安装](docs/linux/soft/jdk-install.md)
@@ -38,7 +40,6 @@
3840
## 运维和脚本
3941

4042
- [系统运维脚本集合](https://github.com/dunwu/linux-tutorial/tree/master/codes/linux/sys)
41-
- [软件运维配置脚本集合](https://github.com/dunwu/linux-tutorial/tree/master/codes/linux/soft)
4243
- [工具脚本集合](https://github.com/dunwu/linux-tutorial/tree/master/codes/linux/soft)
4344
- [Vim 应用指南](docs/linux/ops/vim.md)
4445
- [Zsh 应用指南](docs/linux/ops/zsh.md)

codes/linux/soft/README.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -97,36 +97,33 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mo
9797

9898
## Redis 安装配置
9999

100-
说明:
100+
**安装说明**
101101

102-
- 下载 redis `5.0.4` 并解压安装到 `/opt/redis` 路径下。
103-
- 替换配置,使得 Redis 可以远程访问,并设置默认密码为 123456。
104-
- 注册 redis 服务,并设置为开机自启动
102+
- 采用编译方式安装 Redis, 并将其注册为 systemd 服务
103+
- 安装路径为:`/usr/local/redis`
104+
- 默认下载安装 `5.0.4` 版本,端口号为:`6379`,密码为空
105105

106-
使用方法
106+
**使用方法**
107107

108-
执行以下任意命令即可按照默认配置安装脚本。
108+
- 默认安装 - 执行以下任意命令即可:
109109

110110
```sh
111111
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
112112
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
113113
```
114114

115-
定制化配置
115+
- 自定义安装 - 下载脚本到本地,并按照以下格式执行:
116+
116117

117118
```sh
118-
# 下载脚本到本地
119-
wget https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh
120-
chmod +x redis-install.sh
121-
./redis-install.sh 5.0.4 /opt/redis 6379 123456
119+
sh redis-install.sh [version] [port] [password]
122120
```
123121

124-
说明
122+
参数说明
125123

126-
- 第一个参数是 redis 版本号;
127-
- 第二个参数是 redis 安装路径;
128-
- 第三个参数是 redis 服务端口号;
129-
- 第四个参数是访问密码
124+
- `version` - redis 版本号
125+
- `port` - redis 服务端口号
126+
- `password` - 访问密码
130127

131128
## Tomcat8 安装
132129

@@ -195,19 +192,28 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zo
195192

196193
## Nginx 安装
197194

198-
说明:
195+
**安装说明**
199196

200-
采用编译方式安装 Nginx
197+
- 采用编译方式安装 Nginx, 并将其注册为 systemd 服务
198+
- 安装路径为:`/usr/local/nginx`
199+
- 默认下载安装 `1.16.0` 版本
201200

202-
下载 nginx `1.16.0` 并解压安装到 `/opt/nginx` 路径下。
201+
**使用方法**
202+
203+
- 默认安装 - 执行以下任意命令即可:
203204

204-
使用方法:执行以下任意命令即可执行脚本。
205205

206206
```sh
207207
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
208208
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
209209
```
210210

211+
- 自定义安装 - 下载脚本到本地,并按照以下格式执行:
212+
213+
```bash
214+
sh nginx-install.sh [version]
215+
```
216+
211217
## Fastdfs 安装
212218

213219
说明:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)