Cloud Patrol Forum Deployment Document

Published 2026-07-31 19:24 Updated 2026-07-31 19:24 912 words 5 min read ... Page views

This article describes in detail the complete process of building and deploying a forum system (Cloud Patrol Forum) based on Java and front-end frameworks in a Windows environment, including the installation and configuration of tools such as Java, Maven, Git, Docker, Node.js, etc., front-end project dependence installation and packaging, as well as the steps of uploading application files to the Ubuntu server and running them. Finally, the background login address and related resource path descriptions are provided.

Cloud Patrol Forum Deployment Document

Packaged under Windows and sent to the server to run

Building Windows environment

install Java

Use jvms to manage the java version. If you already have java 8, please ignore it

Download jvms

access

download the latest version

image-20260731150347748
image-20260731150347748

Recommended to decompress to C:\java

image-20260731151058683
image-20260731151058683

Initialize jvms

Search for 编辑系统环境变量 on Windows settings

image-20260731151310087
image-20260731151310087
image-20260731151335163
image-20260731151335163

Double-click Path

image-20260731151516541
image-20260731151516541

Create this new record

image-20260731151532601
image-20260731151532601

Then, open powershell and type

jvms init
image-20260731151714920
image-20260731151714920

Download Java 8

Download address:

image-20260731151911731
image-20260731151911731
image-20260731152034017
image-20260731152034017
image-20260731152049403
image-20260731152049403
image-20260731152105412
image-20260731152105412
image-20260731152127622
image-20260731152127622
image-20260731152205558
image-20260731152205558
image-20260731152420044
image-20260731152420044
image-20260731152457290
image-20260731152457290
image-20260731152801977
image-20260731152801977

Enabling Java 8

Enter in powershell

jvms list

View the version of java managed by jvms in this machine, and enter

jvms switch [ 8 前面的数字]
image-20260731153136986
image-20260731153136986

verify the installation

Enter in powershell

java -version
image-20260731154358950
image-20260731154358950

Install maven

download

download links for

image-20260731153339688
image-20260731153339688

decompression

Unzip the compressed package to C:\maven

image-20260731153428512
image-20260731153428512

configured

Modify configuration file C:\maven\conf\settings.xml

Add between<mirrors> and</mirrors>

    <mirror>
      <id>aliyun</id>
      <mirrorOf>central</mirrorOf>
      <name>aliyun maven</name>
      <url>https://maven.aliyun.com/repository/public</url>
    </mirror>

This configuration is used to set the maven mirror warehouse address

image-20260731153655968
image-20260731153655968

Add between<settings> and</settings>

<localRepository>E:\m2</localRepository>

This configuration is used to set the maven local warehouse address, and try to change it to something other than the C drive.

image-20260731154128693
image-20260731154128693

Add to system environment variables

image-20260731154251729
image-20260731154251729

verify the installation

Enter in powershell

mvn -v
image-20260731154504736
image-20260731154504736

install Git

download

download links for

image-20260731154621281
image-20260731154621281

During the installation process, the default configuration will work, and keep pressing next until the installation is successful

verify the installation

Enter in powershell

git -v
image-20260731154755495
image-20260731154755495

Install Docker Desktop

download

Download address is

image-20260731154932093
image-20260731154932093

configured

Recommend rewriting Docker Engine

image-20260731155106237
image-20260731155106237

If you use 轩辕镜像, please modify the configuration to

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "30GB",
      "enabled": true
    }
  },
  "experimental": false,
  "insecure-registries": [
    "******.xuanyuan.run"
  ],
  "registry-mirrors": [
    "https://******.xuanyuan.run"
  ]
}

install NodeJS

Manage node versions using nvm

Download nvm

download links for

image-20260731161340244
image-20260731161340244

Then agree to the protocol, default configuration, and install

Configure nvm

Running in powershell

# 注意结尾有斜杠
nvm node_mirror https://npmmirror.com/mirrors/node/ 
nvm npm_mirror https://npmmirror.com/mirrors/npm/

This configuration is used to set up domestic mirroring sources

install NodeJS

Running in powershell

# 输出安装版本
nvm -v
# 安装 node 22
nvm install 22
# 使用 node 22
nvm use 22

Configure node

Running in powershell

npm config set registry https://registry.npmmirror.com

This configuration is used to set up domestic mirroring sources

Package and copy the program

start the MySQL

Open powershell on the D drive and run

git clone https://gitee.com/qinzihang2006/blog.git
image-20260731155632133
image-20260731155632133

Running under D:\blog

docker compose up mysql

in the event of

image-20260731160035489
image-20260731160035489

, you can exit and it will run in the background

modify the configuration file

Change the value of VITE_API_URL in D:\blog\bbs-web-admin\.env.production to the real ip address of the server

Change the value of VITE_API_URL in D:\blog\bbs-web-mobile\.env.production to the real ip address of the server

Change the value of VITE_API_URL in D:\blog\bbs-web-pc\.env.production to the real ip address of the server

Add the address of cross-domain requests to D:\blog\src\main\resources\crossOrigin.properties, such as http://10.1.100.104

Install dependencies

Run mvn install under D:\blog and download relevant back-end dependencies

Run npm install under D:\blog\bbs-web-mobile and download mobile dependencies

Run npm install under D:\blog\bbs-web-admin and download the admin-side dependencies

Run npm install under D:\blog\bbs-web-pc and download web dependencies

test run

Run mvn spring-boot:run under D:\blog, if something similar to

16:28:47 INFO  cms.Application - Started Application in 5.304 seconds (JVM running for 5.962)

And there is no error message, and it can be run by default

Running npm run dev under D:\blog\bbs-web-mobile if something similar to

  vite v2.9.15 dev server running at:

  > Local: http://localhost:3000/admin/
  > Network: use `--host` to expose

  ready in 579ms.

And there is no error message, and it can be run by default

The same applies to admin and pc

packaged

Run mvn clean package under D:\blog

In fact, the mvn install command contains packaging

Run npm run build under D:\blog\bbs-web-mobile

Run npm run build under D:\blog\bbs-web-admin

Run npm run build under D:\blog\bbs-web-pc

upload

Here we take Ubuntu 24.04 as an example

Copy D:\blog\target\bbs-pro-6.9.jar to the server under ~

Copy D:\blog\bbs-web-pc\dist to the server under ~/bbs-web-pc

Copy D:\blog\bbs-web-mobile\dist to the server under ~/bbs-web-mobile

Copy D:\blog\bbs-web-admin\dist to the server under ~/bbs-web-admin

Copy D:\blog\docker-compose.yml to the server under ~

Copy D:\blog\nginx.conf to the server under ~

Copy D:\blog\bbs-pro.sql to the server under ~

image-20260731182223230
image-20260731182223230

Server environment construction

install Docker

reference

The automatic installation script is

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

add user group

sudo groupadd docker
sudo usermod -aG docker $USER

configured

It is recommended to use Xuanyuan image to modify the configuration of docker

bash <(wget -qO- https://xuanyuan.cloud/docker.sh)

run

Running under ~

sudo docker compose up -d

Modify forum configuration

Visit http://ip地址:8085/admin/login

User name: admin

Password: 1234567

image-20260731190533587
image-20260731190533587

relevant instructions

relevant URL

Home http://ip地址/

Backstage http://ip地址/admin/login

logo path

bbs-web-admin\public\favicon.ico

bbs-web-pc\public\favicon.ico

bbs-web-mobile\public\favicon.ico

bbs-web-admin\src\assets\images\favicon.ico

bbs-web-pc\src\assets\images\favicon.ico

bbs-web-mobile\src\assets\images\favicon.ico

bbs-web-admin\src\assets\images\logo.gif

bbs-web-pc\src\assets\images\logo.gif

bbs-web-mobile\src\assets\images\logo.gif

If you enjoyed this, leave a comment~

... Page views
© 2026 跨越星轨的客 @Hoshiumi
Powered by theme astro-koharu · Inspired by Shoka