GeoServer版本号version = 2.21.0
version = 2.21.0
在安装GeoServer的根目录下,找到文件夹下的start.ini,并用记事本打开
start.ini
修改端口号后,重启geoserver就行了