From fe38ea93ecfd57b10c6e3a159bf4e581877485ed Mon Sep 17 00:00:00 2001 From: foy lian <270263648@qq.com> Date: Wed, 27 Mar 2024 10:14:48 +0800 Subject: [PATCH] up linux command --- README.md | 8 +++++++- README_en.md | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3c71856..495b344 100644 --- a/README.md +++ b/README.md @@ -53,11 +53,17 @@ go版本webssh standalone模式本来基本够用,但是有的机房甚至开 ### docker独立部署 -v1.26示例: +v1.26示例(windows): ``` docker run -d -p 5132:5132 -p 5443:5443 --restart always --name javawebssh -e JAVA_OPTS=“-Xmx1024M -Xms1024M” -e SPRING_BOOT_OPTS=“--spring.profiles.active=docker --webssh.allowedUsers=root:changeit@123![RANDOM]:%,test:test@123!:127.0.0.1” foylian/webssh:1.26 ``` + +v1.26示例(linux): +``` +docker run -d -p 5132:5132 -p 5443:5443 --restart always --name javawebssh -e JAVA_OPTS='-Xmx1024M -Xms1024M' -e SPRING_BOOT_OPTS='--spring.profiles.active=docker --webssh.allowedUsers=root:changeit@123![RANDOM]:%,test:test@123!:127.0.0.1' foylian/webssh:1.26 +``` + 可能有网络问题,不行试试 `--net=host` 参数? 关键含义说明: diff --git a/README_en.md b/README_en.md index 7b1e358..d25b17d 100644 --- a/README_en.md +++ b/README_en.md @@ -68,11 +68,16 @@ The business code relies on webssh core and vue2 web, and configuration paramete ### docker -V1.26 Example: +V1.26 Example(windows): ``` docker run -d -p 5132:5132 -p 5443:5443 --restart always --name javawebssh -e JAVA_OPTS=“-Xmx1024M -Xms1024M” -e SPRING_BOOT_OPTS=“--spring.profiles.active=docker --webssh.allowedUsers=root:changeit@123![RANDOM]:%,test:test@123!:127.0.0.1” foylian/webssh:1.26 ``` +V1.26 Example(linux): +``` +docker run -d -p 5132:5132 -p 5443:5443 --restart always --name javawebssh -e JAVA_OPTS='-Xmx1024M -Xms1024M' -e SPRING_BOOT_OPTS='--spring.profiles.active=docker --webssh.allowedUsers=root:changeit@123![RANDOM]:%,test:test@123!:127.0.0.1' foylian/webssh:1.26 +``` + may need `--net=host` ?