Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…n_r1392621661

Signed-off-by: ezirmusitua <[email protected]>
  • Loading branch information
ezirmusitua committed Nov 19, 2023
1 parent 2c1a761 commit c7a745e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sidebar_position: 1

```bash
$ wasmedge -v
wasmedge 版本 {{ wasmedge_version }}
wasmedge version {{ wasmedge_version }}
```

用户可以运行 `wasmedge -h` 快速了解命令行选项,或者[在这里查看详细的 `wasmedge` CLI 选项](#选项)`wasmedge` 工具的用法将是:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ wget https://github.com/second-state/rust-examples/releases/latest/download/serv

```bash
$ wasmedge server.wasm
监听在 http://0.0.0.0:8080
Listening on http://0.0.0.0:8080
```

从另一个终端窗口执行以下步骤。

```bash
$ curl http://localhost:8080/
尝试将数据 POST 到 /echo,如: `curl localhost:8080/echo -XPOST -d 'hello world'`
Try POSTing data to /echo such as: `curl localhost:8080/echo -XPOST -d 'hello world'`

$ curl http://localhost:8080/echo -X POST -d "Hello WasmEdge"
Hello WasmEdge
Expand Down Expand Up @@ -135,7 +135,7 @@ wget https://raw.githubusercontent.com/second-state/wasmedge-quickjs/main/exampl

```bash
$ wasmedge --dir .:. wasmedge_quickjs.wasm server.js
监听 8080 ...
Listening on 8080 ...
```

从另一个终端窗口执行以下步骤。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ Hello WasmEdge!

```bash
$ docker run -dp 8080:8080 --rm --runtime=io.containerd.wasmedge.v1 --platform=wasi/wasm secondstate/rust-example-server:latest
正在监听 http://0.0.0.0:8080
Listening on http://0.0.0.0:8080
```

在另一个终端窗口中执行以下操作。

```bash
$ curl http://localhost:8080/
尝试对 /echo 发送数据,如: `curl localhost:8080/echo -XPOST -d 'hello world'`
Try POSTing data to /echo such as: `curl localhost:8080/echo -XPOST -d 'hello world'`

$ curl http://localhost:8080/echo -X POST -d "Hello WasmEdge"
Hello WasmEdge
Expand Down

0 comments on commit c7a745e

Please sign in to comment.