update docs
parent
645534bef9
commit
42aced52c3
|
@ -37,7 +37,7 @@ package-lock.json
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
# temp folders
|
# temp folders
|
||||||
build
|
.temp
|
||||||
dist
|
dist
|
||||||
_book
|
_book
|
||||||
_jsdoc
|
_jsdoc
|
||||||
|
|
49
README.md
49
README.md
|
@ -9,7 +9,6 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h1 align="center">linux-tutorial</h1>
|
<h1 align="center">linux-tutorial</h1>
|
||||||
|
|
||||||
> 📚 **linux-tutorial** 是一个 Linux 教程。
|
> 📚 **linux-tutorial** 是一个 Linux 教程。
|
||||||
>
|
>
|
||||||
> 🔁 项目同步维护在 [github](https://github.com/dunwu/linux-tutorial) | [gitee](https://gitee.com/turnon/linux-tutorial)
|
> 🔁 项目同步维护在 [github](https://github.com/dunwu/linux-tutorial) | [gitee](https://gitee.com/turnon/linux-tutorial)
|
||||||
|
@ -26,26 +25,26 @@
|
||||||
|
|
||||||
> 学习 Linux 的第一步:当然是从 [Linux 命令](docs/linux/cli/README.md) 入手了。
|
> 学习 Linux 的第一步:当然是从 [Linux 命令](docs/linux/cli/README.md) 入手了。
|
||||||
|
|
||||||
- [查看 Linux 命令帮助信息](docs/linux/cli/查看Linux命令帮助信息.md) - 关键词:`help`, `whatis`, `info`, `which`, `whereis`, `man`
|
- [查看 Linux 命令帮助信息](docs/linux/cli/linux-cli-help.md) - 关键词:`help`, `whatis`, `info`, `which`, `whereis`, `man`
|
||||||
- [Linux 文件目录管理](docs/linux/cli/Linux文件目录管理.md) - 关键词:`cd`, `ls`, `pwd`, `mkdir`, `rmdir`, `tree`, `touch`, `ln`, `rename`, `stat`, `file`, `chmod`, `chown`, `locate`, `find`, `cp`, `mv`, `rm`
|
- [Linux 文件目录管理](docs/linux/cli/linux-cli-dir.md) - 关键词:`cd`, `ls`, `pwd`, `mkdir`, `rmdir`, `tree`, `touch`, `ln`, `rename`, `stat`, `file`, `chmod`, `chown`, `locate`, `find`, `cp`, `mv`, `rm`
|
||||||
- [Linux 文件内容查看命令](docs/linux/cli/Linux文件内容查看编辑.md) - 关键词:`cat`, `head`, `tail`, `more`, `less`, `sed`, `vi`, `grep`
|
- [Linux 文件内容查看命令](docs/linux/cli/linux-cli-file.md) - 关键词:`cat`, `head`, `tail`, `more`, `less`, `sed`, `vi`, `grep`
|
||||||
- [Linux 文件压缩和解压](docs/linux/cli/Linux文件压缩和解压.md) - 关键词:`tar`, `gzip`, `zip`, `unzip`
|
- [Linux 文件压缩和解压](docs/linux/cli/linux-cli-file-compress.md) - 关键词:`tar`, `gzip`, `zip`, `unzip`
|
||||||
- [Linux 用户管理](docs/linux/cli/Linux用户管理.md) - 关键词:`groupadd`, `groupdel`, `groupmod`, `useradd`, `userdel`, `usermod`, `passwd`, `su`, `sudo`
|
- [Linux 用户管理](docs/linux/cli/linux-cli-user.md) - 关键词:`groupadd`, `groupdel`, `groupmod`, `useradd`, `userdel`, `usermod`, `passwd`, `su`, `sudo`
|
||||||
- [Linux 系统管理](docs/linux/cli/Linux系统管理.md) - 关键词:`reboot`, `exit`, `shutdown`, `date`, `mount`, `umount`, `ps`, `kill`, `systemctl`, `service`, `crontab`
|
- [Linux 系统管理](docs/linux/cli/linux-cli-system.md) - 关键词:`reboot`, `exit`, `shutdown`, `date`, `mount`, `umount`, `ps`, `kill`, `systemctl`, `service`, `crontab`
|
||||||
- [Linux 网络管理](docs/linux/cli/Linux网络管理.md) - 关键词:关键词:`curl`, `wget`, `telnet`, `ip`, `hostname`, `ifconfig`, `route`, `ssh`, `ssh-keygen`, `firewalld`, `iptables`, `host`, `nslookup`, `nc`/`netcat`, `ping`, `traceroute`, `netstat`
|
- [Linux 网络管理](docs/linux/cli/linux-cli-net.md) - 关键词:关键词:`curl`, `wget`, `telnet`, `ip`, `hostname`, `ifconfig`, `route`, `ssh`, `ssh-keygen`, `firewalld`, `iptables`, `host`, `nslookup`, `nc`/`netcat`, `ping`, `traceroute`, `netstat`
|
||||||
- [Linux 硬件管理](docs/linux/cli/Linux硬件管理.md) - 关键词:`df`, `du`, `top`, `free`, `iotop`
|
- [Linux 硬件管理](docs/linux/cli/linux-cli-hardware.md) - 关键词:`df`, `du`, `top`, `free`, `iotop`
|
||||||
- [Linux 软件管理](docs/linux/cli/Linux硬件管理.md) - 关键词:`rpm`, `yum`, `apt-get`
|
- [Linux 软件管理](docs/linux/cli/linux-cli-software.md) - 关键词:`rpm`, `yum`, `apt-get`
|
||||||
|
|
||||||
### Linux 系统运维
|
### Linux 运维
|
||||||
|
|
||||||
> Linux 系统的常见运维工作。
|
> Linux 系统的常见运维工作。
|
||||||
|
|
||||||
- [linux 典型运维应用](docs/linux/ops/linux典型运维应用.md) - 关键词:域名解析、防火墙、网卡、NTP、crontab
|
- [linux 典型运维应用](docs/linux/ops/linux-base-ops.md) - 关键词:域名解析、防火墙、网卡、NTP、crontab
|
||||||
- [Samba 应用](docs/linux/ops/samba.md)
|
- [Samba](docs/linux/ops/samba.md)
|
||||||
- [Systemd 应用](docs/linux/ops/systemd.md)
|
- [Systemd](docs/linux/ops/systemd.md)
|
||||||
- [Vim 应用](docs/linux/ops/vim.md)
|
- [Vim](docs/linux/ops/vim.md)
|
||||||
- [Iptables 应用](docs/linux/ops/iptables.md)
|
- [Iptables](docs/linux/ops/iptables.md)
|
||||||
- [oh-my-zsh 应用](docs/linux/ops/zsh.md)
|
- [oh-my-zsh](docs/linux/ops/zsh.md)
|
||||||
|
|
||||||
### 软件运维
|
### 软件运维
|
||||||
|
|
||||||
|
@ -67,7 +66,7 @@
|
||||||
- [Elastic 运维](docs/linux/soft/elastic)
|
- [Elastic 运维](docs/linux/soft/elastic)
|
||||||
- [Kafka 运维](docs/linux/soft/kafka-install.md)
|
- [Kafka 运维](docs/linux/soft/kafka-install.md)
|
||||||
- [RocketMQ 运维](docs/linux/soft/rocketmq-install.md)
|
- [RocketMQ 运维](docs/linux/soft/rocketmq-install.md)
|
||||||
- [Zookeeper 运维](https://github.com/dunwu/javaweb/blob/master/docs/technology/monitor/zookeeper-ops.md)
|
- [Zookeeper 运维](https://github.com/dunwu/javatech/blob/master/docs/technology/monitor/zookeeper-ops.md)
|
||||||
- [Nacos 运维](docs/linux/soft/nacos-install.md)
|
- [Nacos 运维](docs/linux/soft/nacos-install.md)
|
||||||
- 服务器
|
- 服务器
|
||||||
- [Nginx 教程 📚](https://github.com/dunwu/nginx-tutorial)
|
- [Nginx 教程 📚](https://github.com/dunwu/nginx-tutorial)
|
||||||
|
@ -76,13 +75,15 @@
|
||||||
- [Mysql 运维](https://github.com/dunwu/db-tutorial/blob/master/docs/sql/mysql/mysql-ops.md)
|
- [Mysql 运维](https://github.com/dunwu/db-tutorial/blob/master/docs/sql/mysql/mysql-ops.md)
|
||||||
- [Redis 运维](https://github.com/dunwu/db-tutorial/blob/master/docs/nosql/redis/redis-ops.md)
|
- [Redis 运维](https://github.com/dunwu/db-tutorial/blob/master/docs/nosql/redis/redis-ops.md)
|
||||||
|
|
||||||
### 扩展
|
### Docker
|
||||||
|
|
||||||
|
- [Docker 快速入门](docs/docker/docker-quickstart.md)
|
||||||
|
- [Dockerfile 最佳实践](docs/docker/docker-dockerfile.md)
|
||||||
|
- [Docker Cheat Sheet](docs/docker/docker-cheat-sheet.md)
|
||||||
|
- [Kubernetes 应用指南](docs/docker/kubernetes.md)
|
||||||
|
|
||||||
|
### 其他
|
||||||
|
|
||||||
- [Docker 教程](docs/docker/README.md)
|
|
||||||
- [Docker 快速入门](docs/docker/docker-quickstart.md)
|
|
||||||
- [Dockerfile 最佳实践](docs/docker/docker-dockerfile.md)
|
|
||||||
- [Docker Cheat Sheet](docs/docker/docker-cheat-sheet.md)
|
|
||||||
- [Kubernetes 应用指南](docs/docker/kubernetes.md)
|
|
||||||
- [一篇文章让你彻底掌握 Python](https://github.com/dunwu/blog/blob/master/source/_posts/coding/python.md)
|
- [一篇文章让你彻底掌握 Python](https://github.com/dunwu/blog/blob/master/source/_posts/coding/python.md)
|
||||||
- [一篇文章让你彻底掌握 Shell](https://github.com/dunwu/blog/blob/master/source/_posts/coding/shell.md)
|
- [一篇文章让你彻底掌握 Shell](https://github.com/dunwu/blog/blob/master/source/_posts/coding/shell.md)
|
||||||
- [Git 从入门到精通](https://github.com/dunwu/blog/blob/master/source/_posts/tools/git.md)
|
- [Git 从入门到精通](https://github.com/dunwu/blog/blob/master/source/_posts/tools/git.md)
|
||||||
|
|
|
@ -6,20 +6,20 @@
|
||||||
|
|
||||||
(1)下载脚本
|
(1)下载脚本
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/download.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/download.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
(2)执行脚本
|
(2)执行脚本
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
cd /tmp/dunwu-ops
|
cd /tmp/dunwu-ops
|
||||||
./dunwu-ops.sh
|
./dunwu-ops.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
(3)清除脚本
|
(3)清除脚本
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/clear.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/clear.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
执行以下任意命令即可执行安装脚本。
|
执行以下任意命令即可执行安装脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zsh-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zsh-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zsh-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zsh-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -44,7 +44,7 @@ JDK8 会被安装到 `/usr/lib/jvm/java` 路径。
|
||||||
|
|
||||||
执行以下任意命令即可执行安装脚本。
|
执行以下任意命令即可执行安装脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/jdk8-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/jdk8-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/jdk8-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/jdk8-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -60,7 +60,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/jd
|
||||||
|
|
||||||
执行以下任意命令即可执行安装脚本。
|
执行以下任意命令即可执行安装脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/maven-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/maven-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/maven-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/maven-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -75,7 +75,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/ma
|
||||||
|
|
||||||
执行以下任意命令即可执行安装脚本。
|
执行以下任意命令即可执行安装脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nodejs-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nodejs-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nodejs-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nodejs-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -90,7 +90,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/no
|
||||||
|
|
||||||
执行以下任意命令即可执行安装脚本。
|
执行以下任意命令即可执行安装脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mongodb-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mongodb-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mongodb-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mongodb-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -107,7 +107,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mo
|
||||||
|
|
||||||
- 默认安装 - 执行以下任意命令即可:
|
- 默认安装 - 执行以下任意命令即可:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -115,7 +115,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/re
|
||||||
- 自定义安装 - 下载脚本到本地,并按照以下格式执行:
|
- 自定义安装 - 下载脚本到本地,并按照以下格式执行:
|
||||||
|
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
sh redis-install.sh [version] [port] [password]
|
sh redis-install.sh [version] [port] [password]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ sh redis-install.sh [version] [port] [password]
|
||||||
|
|
||||||
使用方法:
|
使用方法:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/tomcat8-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/tomcat8-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/tomcat8-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/tomcat8-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -146,7 +146,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/to
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/kafka-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/kafka-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/kafka-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/kafka-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -159,7 +159,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/ka
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/rocketmq-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/rocketmq-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/rocketmq-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/rocketmq-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -172,7 +172,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/ro
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nacos-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nacos-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nacos-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nacos-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -185,7 +185,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/na
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zookeeper-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zookeeper-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zookeeper-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zookeeper-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -203,7 +203,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zo
|
||||||
- 默认安装 - 执行以下任意命令即可:
|
- 默认安装 - 执行以下任意命令即可:
|
||||||
|
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -224,7 +224,7 @@ sh nginx-install.sh [version]
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -235,7 +235,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fa
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/docker-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/docker-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/docker-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/docker-install.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -246,7 +246,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/do
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/yum/change-yum-repo.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/yum/change-yum-repo.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/yum/change-yum-repo.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/yum/change-yum-repo.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -44,7 +44,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/yum
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-tools.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-tools.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-tools.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-tools.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -62,7 +62,7 @@ lib 清单(可以根据需要,在 install-libs.sh 中把不需要的工具
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-libs.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-libs.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-libs.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/install-libs.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -71,7 +71,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/ins
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/stop-firewall.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/stop-firewall.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/stop-firewall.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/stop-firewall.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -80,7 +80,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/sto
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-dns.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-dns.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-dns.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-dns.sh | bash
|
||||||
```
|
```
|
||||||
|
@ -89,7 +89,7 @@ wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set
|
||||||
|
|
||||||
使用方法:执行以下任意命令即可执行脚本。
|
使用方法:执行以下任意命令即可执行脚本。
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-ntp.sh | bash
|
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-ntp.sh | bash
|
||||||
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-ntp.sh | bash
|
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/sys/set-ntp.sh | bash
|
||||||
```
|
```
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"plugins": [
|
||||||
|
"preset-lint-recommended",
|
||||||
|
"preset-lint-consistent",
|
||||||
|
|
||||||
|
["lint-list-item-indent", "space"],
|
||||||
|
["lint-heading-style", false]
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
[
|
||||||
|
"Stylus",
|
||||||
|
"VuePress",
|
||||||
|
[
|
||||||
|
"front[- ]matter",
|
||||||
|
"frontmatter"
|
||||||
|
]
|
||||||
|
]
|
|
@ -0,0 +1,23 @@
|
||||||
|
module.exports = {
|
||||||
|
rules: {
|
||||||
|
'@textlint-rule/no-unmatched-pair': true,
|
||||||
|
apostrophe: true,
|
||||||
|
'common-misspellings': true,
|
||||||
|
diacritics: true,
|
||||||
|
'en-capitalization': {
|
||||||
|
allowHeading: false
|
||||||
|
},
|
||||||
|
'stop-words': {
|
||||||
|
severity: 'warning'
|
||||||
|
},
|
||||||
|
terminology: {
|
||||||
|
terms: `${__dirname}/.textlint.terms.json`
|
||||||
|
},
|
||||||
|
'write-good': {
|
||||||
|
severity: 'warning'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
filters: {
|
||||||
|
comments: true
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
/**
|
||||||
|
* @see https://vuepress.vuejs.org/zh/
|
||||||
|
*/
|
||||||
|
module.exports = {
|
||||||
|
port: "4000",
|
||||||
|
dest: "dist",
|
||||||
|
base: "/linux-tutorial/",
|
||||||
|
title: "LINUX-TUTORIAL",
|
||||||
|
description: "数据库教程",
|
||||||
|
head: [["link", {rel: "icon", href: `/favicon.ico`}]],
|
||||||
|
markdown: {
|
||||||
|
externalLinks: {
|
||||||
|
target: "_blank", rel: "noopener noreferrer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
themeConfig: {
|
||||||
|
logo: "images/dunwu-logo-100.png",
|
||||||
|
repo: "dunwu/linux-tutorial",
|
||||||
|
repoLabel: "Github",
|
||||||
|
editLinks: true,
|
||||||
|
smoothScroll: true,
|
||||||
|
locales: {
|
||||||
|
"/": {
|
||||||
|
label: "简体中文", selectText: "Languages", editLinkText: "帮助我们改善此页面!", lastUpdated: "上次更新", nav: [{
|
||||||
|
text: "Linux 命令", link: "/linux/cli/",
|
||||||
|
}, {
|
||||||
|
text: "Linux 运维", link: "/linux/ops/",
|
||||||
|
}, {
|
||||||
|
text: "Linux 软件运维", link: "/linux/soft/",
|
||||||
|
}, {
|
||||||
|
text: "Docker 教程", link: "/docker/",
|
||||||
|
}, {
|
||||||
|
text: "博客", link: "https://github.com/dunwu/blog", target: "_blank", rel: ""
|
||||||
|
}], sidebar: "auto", sidebarDepth: 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
plugins: [["@vuepress/back-to-top", true], ["@vuepress/pwa", {
|
||||||
|
serviceWorker: true, updatePopup: true
|
||||||
|
}], ["@vuepress/medium-zoom", true], ["container", {
|
||||||
|
type: "vue", before: '<pre class="vue-container"><code>', after: "</code></pre>"
|
||||||
|
}], ["container", {
|
||||||
|
type: "upgrade", before: info => `<UpgradePath title="${info}">`, after: "</UpgradePath>"
|
||||||
|
}], ["flowchart"]]
|
||||||
|
};
|
|
@ -0,0 +1,7 @@
|
||||||
|
export default ({ Vue, isServer }) => {
|
||||||
|
if (!isServer) {
|
||||||
|
import('vue-toasted' /* webpackChunkName: "notification" */).then(module => {
|
||||||
|
Vue.use(module.default)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -26,21 +26,21 @@
|
||||||
|
|
||||||
> 学习 Linux 的第一步:当然是从 [Linux 命令](linux/cli/README.md) 入手了。
|
> 学习 Linux 的第一步:当然是从 [Linux 命令](linux/cli/README.md) 入手了。
|
||||||
|
|
||||||
- [查看 Linux 命令帮助信息](linux/cli/查看Linux命令帮助信息.md) - 关键词:`help`, `whatis`, `info`, `which`, `whereis`, `man`
|
- [查看 Linux 命令帮助信息](linux/cli/linux-cli-help.md) - 关键词:`help`, `whatis`, `info`, `which`, `whereis`, `man`
|
||||||
- [Linux 文件目录管理](linux/cli/Linux文件目录管理.md) - 关键词:`cd`, `ls`, `pwd`, `mkdir`, `rmdir`, `tree`, `touch`, `ln`, `rename`, `stat`, `file`, `chmod`, `chown`, `locate`, `find`, `cp`, `mv`, `rm`
|
- [Linux 文件目录管理](linux/cli/linux-cli-dir.md) - 关键词:`cd`, `ls`, `pwd`, `mkdir`, `rmdir`, `tree`, `touch`, `ln`, `rename`, `stat`, `file`, `chmod`, `chown`, `locate`, `find`, `cp`, `mv`, `rm`
|
||||||
- [Linux 文件内容查看命令](linux/cli/Linux文件内容查看编辑.md) - 关键词:`cat`, `head`, `tail`, `more`, `less`, `sed`, `vi`, `grep`
|
- [Linux 文件内容查看命令](linux/cli/linux-cli-file.md) - 关键词:`cat`, `head`, `tail`, `more`, `less`, `sed`, `vi`, `grep`
|
||||||
- [Linux 文件压缩和解压](linux/cli/Linux文件压缩和解压.md) - 关键词:`tar`, `gzip`, `zip`, `unzip`
|
- [Linux 文件压缩和解压](linux/cli/linux-cli-file-compress.md) - 关键词:`tar`, `gzip`, `zip`, `unzip`
|
||||||
- [Linux 用户管理](linux/cli/Linux用户管理.md) - 关键词:`groupadd`, `groupdel`, `groupmod`, `useradd`, `userdel`, `usermod`, `passwd`, `su`, `sudo`
|
- [Linux 用户管理](linux/cli/linux-cli-user.md) - 关键词:`groupadd`, `groupdel`, `groupmod`, `useradd`, `userdel`, `usermod`, `passwd`, `su`, `sudo`
|
||||||
- [Linux 系统管理](linux/cli/Linux系统管理.md) - 关键词:`reboot`, `exit`, `shutdown`, `date`, `mount`, `umount`, `ps`, `kill`, `systemctl`, `service`, `crontab`
|
- [Linux 系统管理](linux/cli/linux-cli-system.md) - 关键词:`reboot`, `exit`, `shutdown`, `date`, `mount`, `umount`, `ps`, `kill`, `systemctl`, `service`, `crontab`
|
||||||
- [Linux 网络管理](linux/cli/Linux网络管理.md) - 关键词:关键词:`curl`, `wget`, `telnet`, `ip`, `hostname`, `ifconfig`, `route`, `ssh`, `ssh-keygen`, `firewalld`, `iptables`, `host`, `nslookup`, `nc`/`netcat`, `ping`, `traceroute`, `netstat`
|
- [Linux 网络管理](linux/cli/linux-cli-net.md) - 关键词:关键词:`curl`, `wget`, `telnet`, `ip`, `hostname`, `ifconfig`, `route`, `ssh`, `ssh-keygen`, `firewalld`, `iptables`, `host`, `nslookup`, `nc`/`netcat`, `ping`, `traceroute`, `netstat`
|
||||||
- [Linux 硬件管理](linux/cli/Linux硬件管理.md) - 关键词:`df`, `du`, `top`, `free`, `iotop`
|
- [Linux 硬件管理](linux/cli/linux-cli-hardware.md) - 关键词:`df`, `du`, `top`, `free`, `iotop`
|
||||||
- [Linux 软件管理](linux/cli/Linux硬件管理.md) - 关键词:`rpm`, `yum`, `apt-get`
|
- [Linux 软件管理](linux/cli/linux-cli-hardware.md) - 关键词:`rpm`, `yum`, `apt-get`
|
||||||
|
|
||||||
### Linux 系统运维
|
### Linux 系统运维
|
||||||
|
|
||||||
> Linux 系统的常见运维工作。
|
> Linux 系统的常见运维工作。
|
||||||
|
|
||||||
- [linux 典型运维应用](linux/ops/linux典型运维应用.md) - 关键词:域名解析、防火墙、网卡、NTP、crontab
|
- [linux 典型运维应用](linux/ops/linux-base-ops.md) - 关键词:域名解析、防火墙、网卡、NTP、crontab
|
||||||
- [Samba 应用](linux/ops/samba.md)
|
- [Samba 应用](linux/ops/samba.md)
|
||||||
- [Systemd 应用](linux/ops/systemd.md)
|
- [Systemd 应用](linux/ops/systemd.md)
|
||||||
- [Vim 应用](linux/ops/vim.md)
|
- [Vim 应用](linux/ops/vim.md)
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
- [Elastic 运维](linux/soft/elastic)
|
- [Elastic 运维](linux/soft/elastic)
|
||||||
- [Kafka 运维](linux/soft/kafka-install.md)
|
- [Kafka 运维](linux/soft/kafka-install.md)
|
||||||
- [RocketMQ 运维](linux/soft/rocketmq-install.md)
|
- [RocketMQ 运维](linux/soft/rocketmq-install.md)
|
||||||
- [Zookeeper 运维](https://github.com/dunwu/javaweb/blob/master/docs/technology/monitor/zookeeper-ops.md)
|
- [Zookeeper 运维](https://github.com/dunwu/javatech/blob/master/docs/technology/monitor/zookeeper-ops.md)
|
||||||
- [Nacos 运维](linux/soft/nacos-install.md)
|
- [Nacos 运维](linux/soft/nacos-install.md)
|
||||||
- 服务器
|
- 服务器
|
||||||
- [Nginx 教程 📚](https://github.com/dunwu/nginx-tutorial)
|
- [Nginx 教程 📚](https://github.com/dunwu/nginx-tutorial)
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
{
|
|
||||||
"gitbook": "3.2.2",
|
|
||||||
"title": "linux-tutorial",
|
|
||||||
"language": "zh-hans",
|
|
||||||
"root": "./",
|
|
||||||
"structure": {
|
|
||||||
"summary": "sidebar.md"
|
|
||||||
},
|
|
||||||
"links": {
|
|
||||||
"sidebar": {
|
|
||||||
"linux-tutorial": "https://github.com/dunwu/linux-tutorial"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"plugins": [
|
|
||||||
"-lunr",
|
|
||||||
"-search",
|
|
||||||
"advanced-emoji@^0.2.2",
|
|
||||||
"anchor-navigation-ex@1.0.10",
|
|
||||||
"anchors@^0.7.1",
|
|
||||||
"edit-link@^2.0.2",
|
|
||||||
"expandable-chapters-small@^0.1.7",
|
|
||||||
"github@^2.0.0",
|
|
||||||
"search-plus@^0.0.11",
|
|
||||||
"simple-page-toc@^0.1.1",
|
|
||||||
"splitter@^0.0.8",
|
|
||||||
"tbfed-pagefooter@^0.0.1"
|
|
||||||
],
|
|
||||||
"pluginsConfig": {
|
|
||||||
"anchor-navigation-ex": {
|
|
||||||
"showLevel": false,
|
|
||||||
"associatedWithSummary": true,
|
|
||||||
"multipleH1": true,
|
|
||||||
"mode": "float",
|
|
||||||
"isRewritePageTitle": false,
|
|
||||||
"float": {
|
|
||||||
"showLevelIcon": false,
|
|
||||||
"level1Icon": "fa fa-hand-o-right",
|
|
||||||
"level2Icon": "fa fa-hand-o-right",
|
|
||||||
"level3Icon": "fa fa-hand-o-right"
|
|
||||||
},
|
|
||||||
"pageTop": {
|
|
||||||
"showLevelIcon": false,
|
|
||||||
"level1Icon": "fa fa-hand-o-right",
|
|
||||||
"level2Icon": "fa fa-hand-o-right",
|
|
||||||
"level3Icon": "fa fa-hand-o-right"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"edit-link": {
|
|
||||||
"base": "https://github.com/dunwu/linux-tutorial/blob/master/docs",
|
|
||||||
"label": "编辑此页面"
|
|
||||||
},
|
|
||||||
"github": {
|
|
||||||
"url": "https://github.com/dunwu"
|
|
||||||
},
|
|
||||||
"simple-page-toc": {
|
|
||||||
"maxDepth": 4,
|
|
||||||
"skipFirstH1": true
|
|
||||||
},
|
|
||||||
"sharing": {
|
|
||||||
"weibo": true,
|
|
||||||
"all": ["weibo"]
|
|
||||||
},
|
|
||||||
"tbfed-pagefooter": {
|
|
||||||
"copyright": "Copyright © Zhang Peng 2017",
|
|
||||||
"modify_label": "该文件上次修订时间:",
|
|
||||||
"modify_format": "YYYY-MM-DD HH:mm:ss"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
<div align="center"><img width="100px" src="http://dunwu.test.upcdn.net/common/logo/zp.png" /></div>
|
|
||||||
|
|
||||||
# linux-tutorial
|
|
||||||
|
|
||||||
> 📚 **linux-tutorial** 是一个 Linux 教程。
|
|
||||||
|
|
||||||
[开始阅读](README.md)
|
|
154
docs/index.html
154
docs/index.html
|
@ -1,154 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<title>linux-tutorial</title>
|
|
||||||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
|
|
||||||
<meta content="linux-tutorial" name="description" />
|
|
||||||
<meta
|
|
||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
|
||||||
name="viewport"
|
|
||||||
/>
|
|
||||||
<link href="http://dunwu.test.upcdn.net/common/logo/zp_50_50.png" rel="icon" type="image/x-icon" />
|
|
||||||
<link href="//unpkg.com/docsify/lib/themes/vue.css" rel="stylesheet" />
|
|
||||||
<link href="//unpkg.com/gitalk/dist/gitalk.css" rel="stylesheet" />
|
|
||||||
<canvas
|
|
||||||
id="c_n9"
|
|
||||||
width="1920"
|
|
||||||
height="990"
|
|
||||||
style="position: fixed; top: 0; left: 0; z-index: -1; opacity: 0.5;"
|
|
||||||
></canvas>
|
|
||||||
<style>
|
|
||||||
/*超链接样式*/
|
|
||||||
.cover-main a,
|
|
||||||
.content a,
|
|
||||||
.sidebar a,
|
|
||||||
.sidebar ul li a,
|
|
||||||
.sidebar ul li a strong {
|
|
||||||
text-decoration: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*超链接悬浮样式*/
|
|
||||||
.cover-main a:hover,
|
|
||||||
.content a:hover,
|
|
||||||
.sidebar a:hover,
|
|
||||||
.sidebar ul li a:hover,
|
|
||||||
.sidebar ul li a strong:hover {
|
|
||||||
color: #0077e6;
|
|
||||||
text-decoration: underline !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-nav ul {
|
|
||||||
padding-left: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*侧边栏样式*/
|
|
||||||
.sidebar .sidebar-nav h1 {
|
|
||||||
background-color: #f8f8f8;
|
|
||||||
margin: 10px;
|
|
||||||
padding-left: 10px;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 12px;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*文章标题加动态刷新颜色效果*/
|
|
||||||
section.cover h1 span,
|
|
||||||
.markdown-section h1 span {
|
|
||||||
font-weight: 600;
|
|
||||||
font-family: zillaslab, Palatino, 'Palatino Linotype', 'Microsoft YaHei', serif;
|
|
||||||
background-image: -webkit-linear-gradient(left, #9fa5d5, #c4cdd2 50%, #e8f5ca);
|
|
||||||
-webkit-text-fill-color: transparent;
|
|
||||||
-webkit-background-clip: text;
|
|
||||||
-webkit-background-size: 200% 100%;
|
|
||||||
-webkit-animation: hue 5s infinite linear;
|
|
||||||
text-shadow: 2px 2px 2px transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*动态效果*/
|
|
||||||
@-webkit-keyframes hue {
|
|
||||||
from {
|
|
||||||
-webkit-filter: hue-rotate(0deg);
|
|
||||||
-moz-filter: hue-rotate(0deg);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
-webkit-filter: hue-rotate(-360deg);
|
|
||||||
-moz-filter: hue-rotate(-360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="app">正在加载...</div>
|
|
||||||
|
|
||||||
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
|
|
||||||
<script src="//unpkg.com/docsify-edit-on-github/index.js"></script>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
window.$docsify = {
|
|
||||||
name: 'linux-tutorial',
|
|
||||||
repo: 'https://github.com/dunwu/linux-tutorial',
|
|
||||||
logo: 'http://dunwu.test.upcdn.net/common/logo/zp_100_100.png',
|
|
||||||
themeColor: '#6190E8',
|
|
||||||
auto2top: true,
|
|
||||||
coverpage: 'coverpage.md',
|
|
||||||
loadSidebar: 'sidebar.md',
|
|
||||||
autoHeader: false,
|
|
||||||
maxLevel: 4,
|
|
||||||
subMaxLevel: 2,
|
|
||||||
mergeNavbar: true,
|
|
||||||
formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}',
|
|
||||||
search: {
|
|
||||||
maxAge: 86400000,
|
|
||||||
paths: ['/'],
|
|
||||||
placeholder: '🔍 搜索',
|
|
||||||
noData: '😭 没有结果!',
|
|
||||||
depth: 4
|
|
||||||
},
|
|
||||||
pagination: {
|
|
||||||
previousText: '上一篇',
|
|
||||||
nextText: '下一篇',
|
|
||||||
crossChapter: true
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
EditOnGithubPlugin.create('https://github.com/dunwu/linux-tutorial/tree/master/docs/', null, function(file) {
|
|
||||||
if (file.indexOf('en') === -1) {
|
|
||||||
return '📝 编辑文档'
|
|
||||||
} else {
|
|
||||||
return '📝 Edit Document'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
|
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
|
|
||||||
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
|
|
||||||
|
|
||||||
<!--聊天插件和配置-->
|
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/gitalk.min.js"></script>
|
|
||||||
<script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script>
|
|
||||||
<script src="https://cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script>
|
|
||||||
<script>
|
|
||||||
const gitalk = new Gitalk({
|
|
||||||
id: md5(window.location.pathname),
|
|
||||||
clientID: 'e8d4c3d68a873a9da4ce',
|
|
||||||
clientSecret: 'd4550e13edad32bb0cd15e2bc314fc684ac830ef',
|
|
||||||
repo: 'linux-tutorial',
|
|
||||||
owner: 'dunwu',
|
|
||||||
admin: ['dunwu'],
|
|
||||||
distractionFreeMode: true
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!--代码高亮-->
|
|
||||||
<!--@see https://github.com/PrismJS/prism -->
|
|
||||||
<script src="//unpkg.com/prismjs/components/prism-basic.min.js"></script>
|
|
||||||
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
|
|
||||||
<script src="//unpkg.com/prismjs/components/prism-markdown.min.js"></script>
|
|
||||||
|
|
||||||
<!-- <canvas id="c_n9" width="1920" height="990" style="position: fixed; top: 0; left: 0; z-index: -2; opacity: 0.5;"></canvas>-->
|
|
||||||
<script src="https://files.cnblogs.com/files/jingmoxukong/canvas-nest.min.js" async defer></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
## 常用命令
|
## 常用命令
|
||||||
|
|
||||||
- [查看 Linux 命令帮助信息](查看Linux命令帮助信息.md) - 关键词:`help`, `whatis`, `info`, `which`, `whereis`, `man`
|
- [查看 Linux 命令帮助信息](linux-cli-help.md) - 关键词:`help`, `whatis`, `info`, `which`, `whereis`, `man`
|
||||||
- [Linux 文件目录管理](Linux文件目录管理.md) - 关键词:`cd`, `ls`, `pwd`, `mkdir`, `rmdir`, `tree`, `touch`, `ln`, `rename`, `stat`, `file`, `chmod`, `chown`, `locate`, `find`, `cp`, `mv`, `rm`
|
- [Linux 文件目录管理](linux-cli-dir.md) - 关键词:`cd`, `ls`, `pwd`, `mkdir`, `rmdir`, `tree`, `touch`, `ln`, `rename`, `stat`, `file`, `chmod`, `chown`, `locate`, `find`, `cp`, `mv`, `rm`
|
||||||
- [Linux 文件内容查看命令](Linux文件内容查看编辑.md) - 关键词:`cat`, `head`, `tail`, `more`, `less`, `sed`, `vi`, `grep`
|
- [Linux 文件内容查看命令](linux-cli-file.md) - 关键词:`cat`, `head`, `tail`, `more`, `less`, `sed`, `vi`, `grep`
|
||||||
- [Linux 文件压缩和解压](Linux文件压缩和解压.md) - 关键词:`tar`, `gzip`, `zip`, `unzip`
|
- [Linux 文件压缩和解压](linux-cli-file-compress.md) - 关键词:`tar`, `gzip`, `zip`, `unzip`
|
||||||
- [Linux 用户管理](Linux用户管理.md) - 关键词:`groupadd`, `groupdel`, `groupmod`, `useradd`, `userdel`, `usermod`, `passwd`, `su`, `sudo`
|
- [Linux 用户管理](linux-cli-user.md) - 关键词:`groupadd`, `groupdel`, `groupmod`, `useradd`, `userdel`, `usermod`, `passwd`, `su`, `sudo`
|
||||||
- [Linux 系统管理](Linux系统管理.md) - 关键词:`reboot`, `exit`, `shutdown`, `date`, `mount`, `umount`, `ps`, `kill`, `systemctl`, `service`, `crontab`
|
- [Linux 系统管理](linux-cli-system.md) - 关键词:`reboot`, `exit`, `shutdown`, `date`, `mount`, `umount`, `ps`, `kill`, `systemctl`, `service`, `crontab`
|
||||||
- [Linux 网络管理](Linux网络管理.md) - 关键词:关键词:`curl`, `wget`, `telnet`, `ip`, `hostname`, `ifconfig`, `route`, `ssh`, `ssh-keygen`, `firewalld`, `iptables`, `host`, `nslookup`, `nc`/`netcat`, `ping`, `traceroute`, `netstat`
|
- [Linux 网络管理](linux-cli-net.md) - 关键词:关键词:`curl`, `wget`, `telnet`, `ip`, `hostname`, `ifconfig`, `route`, `ssh`, `ssh-keygen`, `firewalld`, `iptables`, `host`, `nslookup`, `nc`/`netcat`, `ping`, `traceroute`, `netstat`
|
||||||
- [Linux 硬件管理](Linux硬件管理.md) - 关键词:`df`, `du`, `top`, `free`, `iotop`
|
- [Linux 硬件管理](linux-cli-hardware.md) - 关键词:`df`, `du`, `top`, `free`, `iotop`
|
||||||
- [Linux 软件管理](Linux硬件管理.md) - 关键词:`rpm`, `yum`, `apt-get`
|
- [Linux 软件管理](linux-cli-hardware.md) - 关键词:`rpm`, `yum`, `apt-get`
|
||||||
|
|
||||||
## 资料
|
## 资料
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ sed '/^test/'d file
|
||||||
>
|
>
|
||||||
> 参考:http://man.linuxde.net/vi
|
> 参考:http://man.linuxde.net/vi
|
||||||
>
|
>
|
||||||
> 引申阅读:[Vim 快速指南](https://github.com/dunwu/OS/blob/master/docs/vim.md)
|
> 引申阅读:[Vim 入门指南](https://github.com/dunwu/OS/blob/master/docs/vim.md)
|
||||||
|
|
||||||
### 2.8. grep
|
### 2.8. grep
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
#
|
||||||
|
|
||||||
- [linux 典型运维应用](linux典型运维应用.md)
|
- [linux 典型运维应用](linux-base-ops.md) - 关键词:域名解析、防火墙、网卡、NTP、crontab
|
||||||
- [samba 使用详解](samba.md)
|
- [Samba](samba.md)
|
||||||
|
- [Systemd](systemd.md)
|
||||||
|
- [Vim](vim.md)
|
||||||
|
- [Iptables](iptables.md)
|
||||||
|
- [oh-my-zsh](zsh.md)
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
## 目录
|
## 目录
|
||||||
|
|
||||||
[Elastic 技术栈之快速指南](elastic-quickstart.md)
|
[Elastic 技术栈之入门指南](elastic-quickstart.md)
|
||||||
|
|
||||||
[Elastic 技术栈之 Logstash 基础](elastic-logstash.md)
|
[Elastic 技术栈之 Logstash 基础](elastic-logstash.md)
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
这里,如果想通过命令方式直接下载(比如用脚本安装),可以在[官方历史发布版本页面](https://help.sonatype.com/repomanager3/download/download-archives---repository-manager-3)中找到合适版本,然后执行以下命令:
|
这里,如果想通过命令方式直接下载(比如用脚本安装),可以在[官方历史发布版本页面](https://help.sonatype.com/repomanager3/download/download-archives---repository-manager-3)中找到合适版本,然后执行以下命令:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
wget -O /opt/maven/nexus-unix.tar.gz http://download.sonatype.com/nexus/3/nexus-3.13.0-01-unix.tar.gz
|
wget -O /opt/maven/nexus-unix.tar.gz http://download.sonatype.com/nexus/3/nexus-3.13.0-01-unix.tar.gz
|
||||||
tar -zxf nexus-unix.tar.gz
|
tar -zxf nexus-unix.tar.gz
|
||||||
```
|
```
|
||||||
|
@ -55,7 +55,7 @@ tar -zxf nexus-unix.tar.gz
|
||||||
|
|
||||||
执行 `./nexus`,可以查看允许执行的参数,如下所示,含义可谓一目了然:
|
执行 `./nexus`,可以查看允许执行的参数,如下所示,含义可谓一目了然:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ ./nexus
|
$ ./nexus
|
||||||
Usage: ./nexus {start|stop|run|run-redirect|status|restart|force-reload}
|
Usage: ./nexus {start|stop|run|run-redirect|status|restart|force-reload}
|
||||||
```
|
```
|
||||||
|
@ -203,7 +203,7 @@ Nexus 中的仓库有以下类型:
|
||||||
|
|
||||||
示例:
|
示例:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
# 编译并打包 maven 项目
|
# 编译并打包 maven 项目
|
||||||
$ mvn clean package -Dmaven.skip.test=true -P zp
|
$ mvn clean package -Dmaven.skip.test=true -P zp
|
||||||
|
|
||||||
|
|
|
@ -1,33 +1,39 @@
|
||||||
{
|
{
|
||||||
"name": "linux-tutorial",
|
"name": "linux-tutorial",
|
||||||
"author": "Zhang Peng",
|
"version": "1.0.0",
|
||||||
"homepage": "http://dunwu.github.io/linux-tutorial",
|
"private": true,
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git@github.com:dunwu/linux-tutorial.git"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "docsify serve ./ --port 4000",
|
"clean": "rimraf dist && rimraf .temp",
|
||||||
"clean": "rimraf _book",
|
"build": "npm run clean && vuepress build ./ --temp .temp",
|
||||||
"install": "gitbook install",
|
"dev": "vuepress dev ./ --temp .temp",
|
||||||
"serve": "gitbook serve",
|
"lint-md": "npm run lint-md:style && npm run lint-md:wording",
|
||||||
"build": "npm run clean & gitbook build",
|
"lint-md:style": "remark --quiet --frail .",
|
||||||
"pdf": "gitbook pdf ."
|
"lint-md:wording": "textlint ./**/*.md",
|
||||||
},
|
"show-help": "vuepress --help",
|
||||||
"dependencies": {
|
"view-info": "vuepress view-info ./ --temp .temp"
|
||||||
"gitbook-plugin-advanced-emoji": "^0.2.2",
|
|
||||||
"gitbook-plugin-anchor-navigation-ex": "^1.0.10",
|
|
||||||
"gitbook-plugin-anchors": "^0.7.1",
|
|
||||||
"gitbook-plugin-edit-link": "^2.0.2",
|
|
||||||
"gitbook-plugin-expandable-chapters-small": "^0.1.7",
|
|
||||||
"gitbook-plugin-github": "^2.0.0",
|
|
||||||
"gitbook-plugin-search-plus": "0.0.11",
|
|
||||||
"gitbook-plugin-simple-page-toc": "^0.1.2",
|
|
||||||
"gitbook-plugin-splitter": "0.0.8",
|
|
||||||
"gitbook-plugin-tbfed-pagefooter": "0.0.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gh-pages": "^2.1.1",
|
"@textlint-rule/textlint-rule-no-unmatched-pair": "^1.0.7",
|
||||||
"rimraf": "^3.0.0"
|
"@vuepress/plugin-back-to-top": "^1.3.0",
|
||||||
|
"@vuepress/plugin-medium-zoom": "^1.3.0",
|
||||||
|
"@vuepress/plugin-pwa": "^1.3.0",
|
||||||
|
"@vuepress/theme-vue": "^1.3.0",
|
||||||
|
"remark-cli": "^7.0.0",
|
||||||
|
"remark-lint": "^6.0.5",
|
||||||
|
"remark-preset-lint-consistent": "^2.0.3",
|
||||||
|
"remark-preset-lint-recommended": "^3.0.3",
|
||||||
|
"rimraf": "^3.0.1",
|
||||||
|
"textlint": "^11.3.1",
|
||||||
|
"textlint-filter-rule-comments": "^1.2.2",
|
||||||
|
"textlint-rule-apostrophe": "^1.0.0",
|
||||||
|
"textlint-rule-common-misspellings": "^1.0.1",
|
||||||
|
"textlint-rule-diacritics": "^1.0.0",
|
||||||
|
"textlint-rule-en-capitalization": "^2.0.2",
|
||||||
|
"textlint-rule-stop-words": "^1.0.17",
|
||||||
|
"textlint-rule-terminology": "^1.1.30",
|
||||||
|
"textlint-rule-write-good": "^1.6.2",
|
||||||
|
"vue-toasted": "^1.1.25",
|
||||||
|
"vuepress": "^1.3.0",
|
||||||
|
"vuepress-plugin-flowchart": "^1.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
# linux-tutorial
|
|
||||||
|
|
||||||
- [简介](README.md)
|
|
||||||
- [**Linux 命令**](linux/cli/README.md)
|
|
||||||
- [查看 Linux 命令帮助信息](linux/cli/查看Linux命令帮助信息.md)
|
|
||||||
- [Linux 文件目录管理](linux/cli/Linux文件目录管理.md)
|
|
||||||
- [Linux 文件内容查看命令](linux/cli/Linux文件内容查看编辑.md)
|
|
||||||
- [Linux 文件压缩和解压](linux/cli/Linux文件压缩和解压.md)
|
|
||||||
- [Linux 用户管理](linux/cli/Linux用户管理.md)
|
|
||||||
- [Linux 系统管理](linux/cli/Linux系统管理.md)
|
|
||||||
- [Linux 网络管理](linux/cli/Linux网络管理.md)
|
|
||||||
- [Linux 硬件管理](linux/cli/Linux硬件管理.md)
|
|
||||||
- [Linux 软件管理](linux/cli/Linux硬件管理.md)
|
|
||||||
- [**Linux 系统运维**](linux/ops/README.md)
|
|
||||||
- [linux 典型运维应用](linux/ops/linux典型运维应用.md)
|
|
||||||
- [samba 使用详解](linux/ops/samba.md)
|
|
||||||
- [Systemd 教程](linux/ops/systemd.md)
|
|
||||||
- [Vim 应用指南](linux/ops/vim.md)
|
|
||||||
- [Zsh 应用指南](linux/ops/zsh.md)
|
|
||||||
- [**软件运维**](linux/soft/README.md)
|
|
||||||
- 开发环境
|
|
||||||
- [JDK 安装](linux/soft/jdk-install.md)
|
|
||||||
- [Maven 安装](linux/soft/maven-install.md)
|
|
||||||
- [Nodejs 安装](linux/soft/nodejs-install.md)
|
|
||||||
- 开发工具
|
|
||||||
- [Nexus 运维](linux/soft/nexus-ops.md)
|
|
||||||
- [Gitlab 运维](linux/soft/kafka-install.md)
|
|
||||||
- [Jenkins 运维](linux/soft/jenkins.md)
|
|
||||||
- [Svn 运维](linux/soft/svn-ops.md)
|
|
||||||
- [YApi 运维](linux/soft/yapi-ops.md)
|
|
||||||
- 中间件服务
|
|
||||||
- [Elastic 运维](linux/soft/elastic/README.md)
|
|
||||||
- [Kafka 运维](linux/soft/kafka-install.md)
|
|
||||||
- [RocketMQ 运维](linux/soft/rocketmq-install.md)
|
|
||||||
- [Nacos 运维](linux/soft/nacos-install.md)
|
|
||||||
- [Zookeeper 运维](https://github.com/dunwu/javaweb/blob/master/docs/technology/monitor/zookeeper-ops.md)
|
|
||||||
- 服务器
|
|
||||||
- [Nginx 教程 📚](https://github.com/dunwu/nginx-tutorial)
|
|
||||||
- [Tomcat 运维](linux/soft/tomcat-install.md)
|
|
||||||
- [数据库 📚](https://github.com/dunwu/db-tutorial)
|
|
||||||
- [Mysql 运维](https://github.com/dunwu/db-tutorial/blob/master/docs/sql/mysql/mysql-ops.md)
|
|
||||||
- [Redis 运维](https://github.com/dunwu/db-tutorial/blob/master/docs/nosql/redis/redis-ops.md)
|
|
||||||
- **扩展**
|
|
||||||
- [Docker 教程](docker/README.md)
|
|
||||||
- [Docker 快速入门](docker/docker-quickstart.md)
|
|
||||||
- [Dockerfile 最佳实践](docker/docker-dockerfile.md)
|
|
||||||
- [Docker Cheat Sheet](docker/docker-cheat-sheet.md)
|
|
||||||
- [一篇文章让你彻底掌握 Python](https://github.com/dunwu/blog/blob/master/source/_posts/coding/python.md)
|
|
||||||
- [一篇文章让你彻底掌握 Shell](https://github.com/dunwu/blog/blob/master/source/_posts/coding/shell.md)
|
|
||||||
- [Git 从入门到精通](https://github.com/dunwu/blog/blob/master/source/_posts/tools/git.md)
|
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* @see https://prettier.io/docs/en/options.html
|
|
||||||
* @see https://prettier.io/docs/en/configuration.html
|
|
||||||
*/
|
|
||||||
module.exports = {
|
|
||||||
tabWidth: 2, semi: false, singleQuote: true
|
|
||||||
}
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# gh-pages 部署脚本
|
||||||
|
# @author Zhang Peng
|
||||||
|
# @since 2020/2/10
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# 装载其它库
|
||||||
|
ROOT_DIR=$(cd `dirname $0`/..; pwd)
|
||||||
|
|
||||||
|
# 确保脚本抛出遇到的错误
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd ${ROOT_DIR}/docs
|
||||||
|
|
||||||
|
# 生成静态文件
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
# 进入生成的文件夹
|
||||||
|
cd dist
|
||||||
|
|
||||||
|
# 如果是发布到自定义域名
|
||||||
|
# echo 'www.example.com' > CNAME
|
||||||
|
|
||||||
|
git init
|
||||||
|
git checkout -b gh-pages && git add .
|
||||||
|
git commit -m 'deploy'
|
||||||
|
|
||||||
|
# 如果发布到 https://<USERNAME>.github.io/<REPO>
|
||||||
|
if [[ ${GITHUB_TOKEN} && ${GITEE_TOKEN} ]]; then
|
||||||
|
echo "使用 token 公钥部署 gh-pages"
|
||||||
|
# ${GITHUB_TOKEN} 是 Github 私人令牌;${GITEE_TOKEN} 是 Gitee 私人令牌
|
||||||
|
# ${GITHUB_TOKEN} 和 ${GITEE_TOKEN} 都是环境变量;travis-ci 构建时会传入变量
|
||||||
|
git push --force --quiet "https://dunwu:${GITHUB_TOKEN}@github.com/dunwu/linux-tutorial.git" gh-pages
|
||||||
|
git push --force --quiet "https://turnon:${GITEE_TOKEN}@gitee.com/turnon/linux-tutorial.git" gh-pages
|
||||||
|
else
|
||||||
|
echo "使用 ssh 公钥部署 gh-pages"
|
||||||
|
git push -f git@github.com:dunwu/linux-tutorial.git gh-pages
|
||||||
|
git push -f git@gitee.com:turnon/linux-tutorial.git gh-pages
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd ${ROOT_DIR}
|
Loading…
Reference in New Issue