JDK Installation
Installing in the Operating System
There are already many similar tutorials and documents, and Windows and Linux have different installation methods, so they are not covered in detail here. This page mainly introduces the Docker-based installation.
Docker Installation and Backend Deployment
提示
Before running the container, if there is no bridge network, create one first for communication between containers: docker network create -d bridge fastbee-bridge
- Upload the packaged backend file fastbee-admin.jar to the /var/data/java directory
- Then execute the following command
shell
docker run \
--name java \
--publish 8080:8080 \
--volume /var/data/java/fastbee-admin.jar:/server.jar \
--volume /var/data/java/uploadPath:/uploadPath \
--volume /var/data/java/logs:/logs \
--volume /etc/localtime:/etc/localtime \
--env "TZ=Asia/Shanghai" \
--network fastbee-bridge \
--restart unless-stopped \
--detach \
openjdk:8-jre \
java -jar /server.jar- Command parameter description
shell
--name # Container name
--publish # Container port mapping
--volume # Mounted volume path, persisting container files to the server
--env # Set container environment variables
--network # Network mode: container/none/bridge/host
--restart # Restart policy: no/on-failure/always/unless-stopped
--detach # Run in the background
