docs: Add some commands
This commit is contained in:
@@ -3,13 +3,24 @@
|
||||
## Run docker
|
||||
|
||||
```bash
|
||||
docker run -it -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ~/mimajingsai:/app -e HOST_IP=110.41.130.197 git.mamahaha.work/sangge/tpre:base bash
|
||||
docker run -it -p 8000-8002:8000-8002 -v ~/mimajingsai/src:/app -e HOST_IP=60.204.193.58 git.mamahaha.work/sangge/tpre:base bash
|
||||
docker run -it -p 8000-8002:8000-8002 -v ~/mimajingsai/src:/app -e HOST_IP=119.3.125.234 git.mamahaha.work/sangge/tpre:base bash
|
||||
docker run -it -p 8000-8002:8000-8002 -v ~/mimajingsai/src:/app -e HOST_IP=124.70.165.73 git.mamahaha.work/sangge/tpre:base bash
|
||||
```
|
||||
|
||||
```bash
|
||||
tpre3: docker run -it -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ~/mimajingsai:/app -e HOST_IP=60.204.233.103 git.mamahaha.work/sangge/tpre:base bash
|
||||
```
|
||||
|
||||
## Start application
|
||||
|
||||
```bash
|
||||
nohup python server.py &
|
||||
nohup python node.py &
|
||||
nohup python client.py &
|
||||
cat nohup.out
|
||||
```
|
||||
|
||||
## Cloud server ip
|
||||
|
||||
**tpre1**: 110.41.155.96
|
||||
@@ -21,7 +32,8 @@ tpre3: docker run -it -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ~/mimajingsai:/a
|
||||
### Client request message
|
||||
|
||||
```bash
|
||||
python client_cli.py 110.41.21.35 aaa
|
||||
python client_cli.py 124.70.165.73 name
|
||||
python client_cli.py 124.70.165.73 environment
|
||||
```
|
||||
|
||||
## Client router
|
||||
|
Reference in New Issue
Block a user