File tree Expand file tree Collapse file tree 1 file changed +40
-28
lines changed Expand file tree Collapse file tree 1 file changed +40
-28
lines changed Original file line number Diff line number Diff line change 24
24
- 使用 MySQL Connector/C++ 8.1.0 连接数据库
25
25
### 入门
26
26
27
- #### 安装
27
+ ### 安装(推荐)
28
+ ``` bash
29
+ sudo apt install git gcc g++ cmake libjsoncpp-dev uuid-dev zlib1g-dev openssl libssl-dev
30
+ git clone https://github.com/stepbystepcode/flypen.git --recursive
31
+ cd flypen
32
+ ./run.sh
33
+ ```
34
+
35
+ ### 安装(常规)
36
+ <details >
37
+ <summary >过时的</summary >
38
+ <br ><br >
39
+ <pre >
40
+ git clone https://github.com/stepbystepcode/flypen.git
41
+ cd flypen
42
+ git submodule update --init
43
+ cd drogon
44
+ git submodule update --init
45
+ sudo apt install git gcc g++ cmake libjsoncpp-dev uuid-dev zlib1g-dev openssl libssl-dev
46
+ mkdir build
47
+ cd build
48
+ cmake ..
49
+ make -j 8
50
+ sudo make install
51
+ cd ../..
52
+ cd jwt-cpp
53
+ mkdir build
54
+ cd build
55
+ cmake ..
56
+ make -j 8
57
+ sudo make install
58
+ cd ../..
59
+ wget https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-8.1.0-linux-glibc2.28-x86-64bit.tar.gz
60
+ tar zxvf mysql-connector-c++-8.1.0-linux-glibc2.28-x86-64bit.tar.gz
61
+ mv mysql-connector-c++-8.1.0-linux-glibc2.28-x86-64bit mysql-connector
62
+ rm mysql-connector-c++-8.1.0-linux-glibc2.28-x86-64bit.tar.gz
63
+ mkdir build
64
+ ./run.sh
65
+ </pre >
66
+ </details >
28
67
29
- ```
30
- git clone https://github.com/stepbystepcode/flypen.git
31
- cd flypen
32
- git submodule update --init
33
- cd drogon
34
- git submodule update --init
35
- sudo apt install git gcc g++ cmake libjsoncpp-dev uuid-dev zlib1g-dev openssl libssl-dev
36
- mkdir build
37
- cd build
38
- cmake .
39
- make -j 8
40
- sudo make install
41
- cd ./...
42
- cd jwt-cpp
43
- mkdir build
44
- cd build
45
- cmake .
46
- make -j 8
47
- sudo make install
48
- cd ../..
49
- wget https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-8.1.0-linux-glibc2.28-x86-64bit.tar.gz
50
- tar zxvf mysql-connector-c++-8.1.0-linux-glibc2.28-x86-64bit.tar.gz
51
- mv mysql-connector-c++-8.1.0-linux-glibc2.28-x86-64bit mysql-connector
52
- rm mysql-connector-c++-8.1.0-linux-glibc2.28-x86-64bit.tar.gz
53
- mkdir build
54
- ./run.sh
55
- ```
56
68
## API 文档
57
69
请参阅 [ API.md] ( API.md ) 了解有关身份验证、用户管理、文档等 API 的详细信息。
58
70
You can’t perform that action at this time.
0 commit comments