Skip to content

Commit 6a9206b

Browse files
committed
整理内容
1 parent c409976 commit 6a9206b

14 files changed

Lines changed: 111 additions & 131 deletions

File tree

README.md

Lines changed: 28 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
# 操作系统指南
1+
# Linux 教程
22

3-
> 作为研发工程师,谁还没干过点运维的活?:joy:
4-
>
5-
> 搞运维,怎么着也得懂点操作系统相关。
6-
>
7-
> 本项目,就是本人在日常学习工作中,对于操作系统、运维部署等相关知识的整理。
8-
9-
## :memo: 知识点
10-
11-
### [Linux](docs/linux)
12-
13-
#### [Linux 命令](docs/linux/cli)
3+
## [Linux 命令](docs/linux/cli)
144

155
> 根据应用场景,将常见 Linux 命令分门别类的一一介绍。
166
>
@@ -26,57 +16,47 @@
2616
8. [Linux 硬件管理](docs/linux/cli/08.Linux硬件管理.md) - 关键词:`df`, `du`, `top`, `free`, `iotop`
2717
9. [Linux 软件管理](docs/linux/cli/09.Linux软件管理.md) - 关键词:`rpm`, `yum`, `apt-get`
2818

29-
#### [Linux 工具](docs/linux/tool)
19+
## [Linux 工具](docs/linux/tool)
3020

3121
- [Git](docs/linux/tool/git)
3222
- [Vim](docs/linux/tool/vim.md)
3323

34-
#### [Linux 脚本编程](docs/linux/scripts)
24+
## [Linux 脚本](docs/linux/scripts)
3525

3626
- [一篇文章让你彻底掌握 shell 语言](docs/linux/scripts/shell.md)
37-
- [Python](docs/linux/scripts/python.md)
27+
- [一篇文章让你彻底掌握 python 语言](docs/linux/scripts/python.md)
3828

39-
#### [Linux 运维](docs/linux/ops)
29+
## [Linux 运维](docs/linux/ops)
4030

41-
#### Linux 服务器运维
31+
### Linux 服务器运维
4232

4333
- [Linux 典型运维应用](docs/linux/ops/linux典型运维应用.md)
4434
- [samba 使用详解](docs/linux/ops/samba使用详解.md)
4535

46-
#### 应用、服务、工具运维和调优
36+
### 软件安装、配置、调优
4737

4838
> :bulb: **说明**
4939
>
5040
> 这里总结了一些常用开发软件的安装、配置、使用指南。
5141
>
52-
> 此外,提供了一键安装、配置脚本,:point_right: [**软件安装配置脚本**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/soft)
42+
> 此外,提供了一键安装、配置脚本,:point_right: [**软件安装配置脚本**](https://github.com/dunwu/linux-tutorial/tree/master/codes/linux/ops/soft)
5343
>
54-
> [环境部署工具](https://github.com/dunwu/os-tutorial/tree/master/codes/deploy) :适合开发、运维人员,在 [CentOS](https://www.centos.org/) 机器上安装常用命令工具或开发软件。
55-
56-
- 研发环境
57-
- [JDK](docs/linux/ops/soft/jdk.md)
58-
- [Maven、Nexus](https://github.com/dunwu/javastack/tree/master/docs/javatool/build/maven)
59-
- [Nginx](https://github.com/dunwu/nginx-tutorial)
60-
- [Nodejs](docs/linux/ops/soft/nodejs.md)
61-
- [Tomcat](docs/linux/ops/soft/tomcat.md)
62-
- [Zookeeper](docs/linux/ops/soft/zookeeper.md)
63-
- 研发工具
64-
- [Jenkins](docs/linux/ops/soft/jenkins.md) - 持续集成和持续交付平台。
65-
- [Elastic](docs/linux/ops/soft/elastic) - 常被称为 `ELK` ,是 Java 世界最流行的分布式日志解决方案 。 `ELK` 是 Elastic 公司旗下三款产品 [ElasticSearch](https://www.elastic.co/products/elasticsearch)[Logstash](https://www.elastic.co/products/logstash)[Kibana](https://www.elastic.co/products/kibana) 的首字母组合。
66-
- 版本控制
67-
- Gitlab - Git 代码管理平台
68-
- [Svn](docs/linux/ops/soft/svn.md) - Svn 是 Subversion 的简称,是一个开放源代码的版本控制系统,它采用了分支管理系统。
69-
- 消息中间件
70-
- [Kafka](docs/linux/ops/soft/kafka.md) - 应该是 Java 世界最流行的消息中间件了吧。
71-
- [RocketMQ](docs/linux/ops/soft/rocketmq.md) - 阿里巴巴开源的消息中间件。
72-
- 数据库
73-
- [Mysql](https://github.com/dunwu/database/blob/master/docs/mysql/install-mysql.md) - 关系型数据库
74-
- [PostgreSQL](https://github.com/dunwu/database/blob/master/docs/postgresql.md#安装) - 关系型数据库
75-
- [Mongodb](https://github.com/dunwu/database/blob/master/docs/mongodb/install-mongodb.md) - Nosql
76-
- [Redis](https://github.com/dunwu/database/blob/master/docs/redis/install-redis.md) - Nosql
77-
78-
### [Windows](docs/windows)
79-
80-
- [Windows 工具](docs/windows/Windows工具.md)
81-
82-
### [Docker](docs/docker)
44+
> [环境部署工具](https://github.com/dunwu/linux-tutorial/tree/master/codes/deploy) :适合开发、运维人员,在 [CentOS](https://www.centos.org/) 机器上安装常用命令工具或开发软件。
45+
46+
| 软件 | 说明 |
47+
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
48+
| [JDK 安装](docs/linux/ops/soft/jdk.md) | 不解释 |
49+
| [Elastic 安装](docs/linux/ops/soft/elastic) | 常被称为 ELK ,是 Java 世界最流行的分布式日志解决方案 。 ELK 是 Elastic 公司旗下三款产品 ElasticSearch 、Logstash 、Kibana 的首字母组合。 |
50+
| Gitlab | Git 代码管理平台 |
51+
| [Jenkins 安装](docs/linux/ops/soft/jenkins.md) | 持续集成和持续交付平台。 |
52+
| [Kafka 安装](docs/linux/ops/soft/kafka.md) | 应该是 Java 世界最流行的消息中间件了吧。 |
53+
| [Maven 安装](https://github.com/dunwu/java-tutorial/blob/master/docs/javatool/build/maven/maven-install.md) | Java 构建工具 |
54+
| [Nexus 安装](https://github.com/dunwu/java-tutorial/blob/master/docs/javatool/build/maven/nexus.md) | Maven 私服 |
55+
| [Nginx 教程](https://github.com/dunwu/nginx-tutorial) | 反向代理服务器 |
56+
| [Nodejs 安装](docs/linux/ops/soft/nodejs.md) | 不解释 |
57+
| [RocketMQ 安装](docs/linux/ops/soft/rocketmq.md) | 阿里巴巴开源的消息中间件。 |
58+
| [Svn 安装](docs/linux/ops/soft/svn.md) | Svn 是 Subversion 的简称,是一个开放源代码的版本控制系统,它采用了分支管理系统。 |
59+
| [Tomcat 安装](docs/linux/ops/soft/tomcat.md) | Java 应用服务器 |
60+
| [Zookeeper 安装](docs/linux/ops/soft/zookeeper.md) | 分布式系统协调软件 |
61+
62+
## [Docker](docs/docker)

codes/linux/ops/soft/README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
执行以下任意命令即可执行安装脚本。
1212

1313
```sh
14-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/zsh-install.sh | bash
15-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/zsh-install.sh | bash
14+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/zsh-install.sh | bash
15+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/zsh-install.sh | bash
1616
```
1717

1818
## JDK8 安装
@@ -26,8 +26,8 @@ JDK8 会被安装到 `/usr/lib/jvm/java` 路径。
2626
执行以下任意命令即可执行安装脚本。
2727

2828
```sh
29-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/jdk8-install.sh | bash
30-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/jdk8-install.sh | bash
29+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/jdk8-install.sh | bash
30+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/jdk8-install.sh | bash
3131
```
3232

3333
## Maven 安装配置
@@ -42,8 +42,8 @@ wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux
4242
执行以下任意命令即可执行安装脚本。
4343

4444
```sh
45-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/maven-install.sh | bash
46-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/maven-install.sh | bash
45+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/maven-install.sh | bash
46+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/maven-install.sh | bash
4747
```
4848

4949
## Node.js 安装
@@ -57,8 +57,8 @@ wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux
5757
执行以下任意命令即可执行安装脚本。
5858

5959
```sh
60-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/nodejs-install.sh | bash
61-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/nodejs-install.sh | bash
60+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/nodejs-install.sh | bash
61+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/nodejs-install.sh | bash
6262
```
6363

6464
## MongoDB 安装
@@ -72,8 +72,8 @@ wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux
7272
执行以下任意命令即可执行安装脚本。
7373

7474
```sh
75-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/mongodb-install.sh | bash
76-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/mongodb-install.sh | bash
75+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/mongodb-install.sh | bash
76+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/mongodb-install.sh | bash
7777
```
7878

7979
## Redis 安装
@@ -87,8 +87,8 @@ wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux
8787
执行以下任意命令即可执行安装脚本。
8888

8989
```sh
90-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/redis-install.sh | bash
91-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/redis-install.sh | bash
90+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/redis-install.sh | bash
91+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/redis-install.sh | bash
9292
```
9393

9494
## Tomcat8 安装
@@ -100,8 +100,8 @@ wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux
100100
使用方法:
101101

102102
```sh
103-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/tomcat8-install.sh | bash
104-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/tomcat8-install.sh | bash
103+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/tomcat8-install.sh | bash
104+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/tomcat8-install.sh | bash
105105
```
106106

107107
## Kafka 安装
@@ -113,8 +113,8 @@ wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux
113113
使用方法:执行以下任意命令即可执行脚本。
114114

115115
```sh
116-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/kafka-install.sh | bash
117-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/kafka-install.sh | bash
116+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/kafka-install.sh | bash
117+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/kafka-install.sh | bash
118118
```
119119

120120
## RocketMQ 安装
@@ -126,8 +126,8 @@ wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux
126126
使用方法:执行以下任意命令即可执行脚本。
127127

128128
```sh
129-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/rocketmq-install.sh | bash
130-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/rocketmq-install.sh | bash
129+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/rocketmq-install.sh | bash
130+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/rocketmq-install.sh | bash
131131
```
132132

133133
## ZooKeeper 安装
@@ -139,7 +139,7 @@ wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux
139139
使用方法:执行以下任意命令即可执行脚本。
140140

141141
```sh
142-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/zookeeper-install.sh | bash
143-
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/zookeeper-install.sh | bash
142+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/zookeeper-install.sh | bash
143+
wget -qO- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/zookeeper-install.sh | bash
144144
```
145145

codes/linux/ops/soft/elk/install-elk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ replaceLogstashConfig() {
7676
sed -i "s/# http.host: \"127.0.0.1\"/ http.host: ${IP}/g" ${ELASTIC_SOFTWARE_PATH}/logstash-${version}/config/logstash.yml
7777
touch ${ELASTIC_SOFTWARE_PATH}/logstash-${version}/bin/nohup.out
7878
cd ${ELASTIC_SOFTWARE_PATH}/logstash-${version}/bin
79-
wget "https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/elk/config/logstash.conf"
79+
wget "https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/elk/config/logstash.conf"
8080
}
8181

8282
# 替换 Kibana 配置
@@ -125,6 +125,6 @@ replaceFilebeatConfig
125125

126126
# 最后,将启动脚本下载到本地
127127
mkdir -p /home/zp/script
128-
wget -P /home/zp/script "https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/elk/boot-elk.sh"
128+
wget -P /home/zp/script "https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/elk/boot-elk.sh"
129129
#setPrivilegeForUser
130130

codes/linux/ops/soft/main.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ do
1717
path=$(cd "$(dirname "$0")"; pwd)
1818
case ${item} in
1919
"git") yum install -y git ;;
20-
"zsh") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/zsh-install.sh | bash ;;
21-
"jdk") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/jdk8-install.sh | bash ;;
22-
"maven") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/maven-install.sh | bash ;;
23-
"nodejs") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/nodejs-install.sh | bash ;;
24-
"mongodb") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/mongodb-install.sh | bash ;;
25-
"redis") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/redis-install.sh | bash ;;
26-
"tomcat") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/tomcat8-install.sh | bash ;;
27-
"kafka") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/kafka-install.sh | bash ;;
28-
"rocketmq") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/rocketmq-install.sh | bash ;;
29-
"zookeeper") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/zookeeper-install.sh | bash ;;
20+
"zsh") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/zsh-install.sh | bash ;;
21+
"jdk") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/jdk8-install.sh | bash ;;
22+
"maven") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/maven-install.sh | bash ;;
23+
"nodejs") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/nodejs-install.sh | bash ;;
24+
"mongodb") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/mongodb-install.sh | bash ;;
25+
"redis") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/redis-install.sh | bash ;;
26+
"tomcat") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/tomcat8-install.sh | bash ;;
27+
"kafka") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/kafka-install.sh | bash ;;
28+
"rocketmq") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/rocketmq-install.sh | bash ;;
29+
"zookeeper") curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/zookeeper-install.sh | bash ;;
3030
*)
3131
echo -e "输入项不支持!"
3232
main

codes/linux/ops/soft/maven-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ source /etc/profile
3838
# 备份并替换 settings.xml,使用 aliyun 镜像加速 maven
3939
echo -e "\n>>>>>>>>> replace ${path}/conf/settings.xml"
4040
cp ${path}/conf/settings.xml ${path}/conf/settings.xml.bak
41-
wget -N https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/config/settings-aliyun.xml -O ${path}/conf/settings.xml
41+
wget -N https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/config/settings-aliyun.xml -O ${path}/conf/settings.xml
4242

4343
mvn -v

codes/linux/ops/soft/nginx/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
使用方法:
66

77
```sh
8-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/nginx/install-nginx.sh | bash
8+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/nginx/install-nginx.sh | bash
99
```
1010

1111
脚本会下载解压 nginx 到 `/opt/nginx` 路径下。
@@ -15,6 +15,6 @@ curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/
1515
使用方法:
1616

1717
```sh
18-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/nginx/install-nginx-by-yum.sh | bash
18+
curl -o- https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/nginx/install-nginx-by-yum.sh | bash
1919
```
2020

codes/linux/ops/soft/redis-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ fi
1717

1818
echo -e "\n>>>>>>>>> config redis"
1919
cp ${path}/redis.conf ${path}/redis.conf.default
20-
wget -N https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/config/redis-remote-access.conf -O ${path}/redis.conf
20+
wget -N https://raw.githubusercontent.com/dunwu/linux-tutorial/master/codes/linux/ops/soft/config/redis-remote-access.conf -O ${path}/redis.conf

0 commit comments

Comments
 (0)