1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| mkdir api-proxy-cli cd api-proxy-cli curl -L -o config.yaml https://raw.githubusercontent.com/router-for-me/CLIProxyAPI/main/config.example.yaml
docker run -d --rm -p 8317:8317 -v ~/api-proxy-cli/config.yaml:/CLIProxyAPI/config.yaml -v /root/.cli-proxy-api:/root/.cli-proxy-api eceasy/cli-proxy-api:latest
ssh -L 1455:127.0.0.1:1455 root@xx.xx.xx.xx -p 22 ssh -i ~/.ssh/singapore.pem -L 1455:127.0.0.1:1455 root@43.106.66.197 -p 22
docker exec -it <容器ID或名称> /CLIProxyAPI/CLIProxyAPI --codex-login --no-browser docker exec -it 50d287aa0b41 /CLIProxyAPI/CLIProxyAPI --codex-login --no-browser
docker exec 50d287aa0b41 ps -ef
docker exec 50d287aa0b41 kill <PID>
docker run -d --name my-nginx --restart unless-stopped --add-host=host.docker.internal:host-gateway -p 80:80 -v /etc/nginx/nginx.conf:/etc/nginx/nginx.conf nginx:latest
|