# shell-utils **Repository Path**: magein/shell-utils ## Basic Information - **Project Name**: shell-utils - **Description**: linux服务器使用的shell工具包 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-09 - **Last Updated**: 2024-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 简介 基于docker快速构建```web server```环境 ### 使用方法 #### 引导文件 > 引导文件用于下载基础的脚本文件 下载 使用root权限下载初始化文件 ``` wget https://gitee.com/magein/shell-utils/raw/master/boot -O boot && chmod 744 boot && ./boot ``` 下载后将在/root/目录下生成,查看下载的文件 ``` ls /root ``` 1. boot 引导文件 2. .script.json 脚本配置文件 3. .dockerfile.json dockerfile配置文件 4. .conf.json server服务配置 配置文件 5. scripts 脚本文件 #### webserver环境 构建`web server` 服务 `nginx1.22.1` + `php7.4.33` + `mysql5.7.40` ```shell cd /root/scripts ./webserver ``` #### 依赖 配置文件使用json配置文件格式,但是在shell中不支持解析json,所以需要依赖第三方库jq https://stedolan.github.io/jq/download/ ### 目录说明 #### conf 存放常用服务的配置文件,nginx、mysql、php、redis等 #### dockerfile 存放常用服务的dockerfile文件,如nginx、mysql、php、redis等 可用于构建docker镜像 #### resources 存放资源文件 [资源文件说明](./resources/readme.md) #### scripts 自己编写的脚本文件 [脚本说明](./scripts/readme.md)