# 安装

#### 1.赋予权限

```
    # 以下目录及子目录赋予读写权限
    ./log
    ./public/attachment
    ./public/document

    # 赋予 ./server 执行权限
    chmod +x ./server

```

#### 2.安装 Mysql 数据库, 5.7 以上版本, 创建数据库如`artisan_db`

```sql
 #创建数据库示例
 CREATE DATABASE artisan_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
 # 赋予用户权限示例(根据你的用户名调整)
 grant all privileges on artisan_db.* to 'user'@'localhost';
 flush privileges;

```

#### 3.安装 Redis-server

#### 4.修改配置文件 `./config.yaml`中的域名、数据库、Redis、邮件配置

#### 5.在命令行终端中执行安装命令

```shell

  # 安装数据库表及基础必要数据
 ./server install


  # 安装成功后会显示管理账号密码，请牢记保存

```

注： 安装成功后会显示管理账号密码，请牢记保存！！！！

#### 6.运行服务

```shell

  # 安装数据库表及基础必要数据
 ./server
  # 安装成功后会显示管理账号密码，请牢记保存

```

#### 7.浏览器中访问配置域名

Good luck! Good luck!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://artisantrack.gitbook.io/artisantrack-docs/getting-started/publish-your-docs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
