fix README.md format
This commit is contained in:
@@ -39,6 +39,7 @@ lua_package_path "/usr/local/openresty/resty_funcs/?.lua;;";
|
|||||||
|
|
||||||
<h2 id="1">1.图片上传</h2>
|
<h2 id="1">1.图片上传</h2>
|
||||||
- music-room配置
|
- music-room配置
|
||||||
|
|
||||||
```nginx configuration
|
```nginx configuration
|
||||||
# 子域名配置文件路径
|
# 子域名配置文件路径
|
||||||
# /usr/local/openresty/nginx/conf.d/music-room.conf
|
# /usr/local/openresty/nginx/conf.d/music-room.conf
|
||||||
@@ -57,6 +58,7 @@ lua_package_path "/usr/local/openresty/resty_funcs/?.lua;;";
|
|||||||
- 添加lua脚本
|
- 添加lua脚本
|
||||||
|
|
||||||
将file_upload文件夹下的upload_image.lua 拷贝到如下路径
|
将file_upload文件夹下的upload_image.lua 拷贝到如下路径
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/usr/local/openresty/resty_funcs
|
/usr/local/openresty/resty_funcs
|
||||||
.
|
.
|
||||||
@@ -64,12 +66,14 @@ lua_package_path "/usr/local/openresty/resty_funcs/?.lua;;";
|
|||||||
```
|
```
|
||||||
|
|
||||||
- 测试curl命令
|
- 测试curl命令
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -v -F 'up_load_json=@./test_files/tile-0.jpg' -F 'up_load_json=@./test_files/tile-1.jpg' -F 'up_load_json=@./test_files/tile-2.jpg' https://music-room.alchemy-studio.cn/upload_image
|
curl -v -F 'up_load_json=@./test_files/tile-0.jpg' -F 'up_load_json=@./test_files/tile-1.jpg' -F 'up_load_json=@./test_files/tile-2.jpg' https://music-room.alchemy-studio.cn/upload_image
|
||||||
```
|
```
|
||||||
|
|
||||||
⚠️ **./test_files/test0.jpg ./test_files/test1.jpg ./test_files/test2.jpg 为三张上传拼接的图片的路径和文件名**
|
⚠️ **./test_files/test0.jpg ./test_files/test1.jpg ./test_files/test2.jpg 为三张上传拼接的图片的路径和文件名**
|
||||||
```bash
|
|
||||||
|
```bash
|
||||||
* Trying 152.136.103.69...
|
* Trying 152.136.103.69...
|
||||||
* TCP_NODELAY set
|
* TCP_NODELAY set
|
||||||
* Connected to music-room.alchemy-studio.cn (152.136.103.69) port 443 (#0)
|
* Connected to music-room.alchemy-studio.cn (152.136.103.69) port 443 (#0)
|
||||||
@@ -164,9 +168,10 @@ curl -v -F 'up_load_json=@./test_files/tile-0.jpg' -F 'up_load_json=@./test_file
|
|||||||
|
|
||||||
* Connection #0 to host music-room.alchemy-studio.cn left intact
|
* Connection #0 to host music-room.alchemy-studio.cn left intact
|
||||||
* Closing connection 0
|
* Closing connection 0
|
||||||
```
|
```
|
||||||
|
|
||||||
- 查看上传文件和拼接文件
|
- 查看上传文件和拼接文件
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ pwd
|
$ pwd
|
||||||
/file_upload
|
/file_upload
|
||||||
@@ -184,7 +189,9 @@ $ ls -l
|
|||||||
```
|
```
|
||||||
|
|
||||||
<h2 id="2">2.图片拼接</h2>
|
<h2 id="2">2.图片拼接</h2>
|
||||||
- music-room配置
|
|
||||||
|
- music-room配置
|
||||||
|
|
||||||
```nginx configuration
|
```nginx configuration
|
||||||
# 子域名配置文件路径
|
# 子域名配置文件路径
|
||||||
# /usr/local/openresty/nginx/conf.d/music-room.conf
|
# /usr/local/openresty/nginx/conf.d/music-room.conf
|
||||||
@@ -203,6 +210,7 @@ location /image_append {
|
|||||||
- 添加lua脚本
|
- 添加lua脚本
|
||||||
|
|
||||||
将file_upload文件夹下的image_append拷贝到如下路径
|
将file_upload文件夹下的image_append拷贝到如下路径
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/usr/local/openresty/resty_funcs
|
/usr/local/openresty/resty_funcs
|
||||||
.
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user