geoserver installation and deployment-window environment

Prepare the environment

The first choice is to ensure that the Java Runtime Environment (JRE) is installed on the system. Geoserver requires a Java environment; it can be installed by Baidu. Then you need to prepare the tomcat and geoserver (war) installation package; for tomcat, I have prepared a zip version of the direct decompression.

Link: https://pan.baidu.com/s/1ai5J1wVKydrxs4eF8KPl2w
Extraction code: dhrz
copy this content and open the Baidu Netdisk mobile phone App, the operation is more convenient

For geoserver, you can download it on the official website
Insert picture description here

Or use this installation package (version 2.181) I prepared:

Link: https://pan.baidu.com/s/1An7g6uBhfL4_akXEJ6EH2A
Extraction code: omi4
copy this content and open the Baidu Netdisk mobile app, which is more convenient for operation

installation

First unzip the tomcat installation package, then unzip the geoserver (war) installation package; copy the war file in the geoserver (war) unzip package to the webapps folder of the tomcat unzip package:
Insert picture description here
copy the above files to:
Insert picture description here
then open the bin folder of tomcat Start Tomcat under startup.bat; (shutdown.bat: shut down Tomcat) After starting tomcat, it will decompress the geoserver.war file for its own use; it will decompress a geoserver folder; as shown below (the process is a bit slow)

Insert picture description here
See the following information, unzip and start to complete;
Insert picture description here

Then enter localhost:8080/geoserver in the browser and it will jump to the login interface of geoserver (the default port is 8080); the default user name and password are admin/geoserver

Insert picture description here
At this point, the geoserver installation is successful!

Self-starting tomcat

Every time we start tomcat, we need to execute startup.bat in the bin folder, which is very troublesome; you can register tomcat as a service, set the boot or start manually; the bin directory of tomcat provides a service.bat batch file, use It is used to register tomcat as a system service.

First open cmd, then cd to the bin directory of tomcat, or open cmd directly in the service.bat directory. Then execute the command: service.bat install service name, the following service name can be taken at will, don't conflict with the existing service name of the system, if not written, the default service name is "Apache Tomcat"

Insert picture description here
Then open the service, you can see our registered service:

Insert picture description here
Here you can set manual or automatic, delayed start of the service.
If the tomcat service is no longer needed, you can also use service.bat uninstall service name to remove it; mainly stop the service before removing it.

Guess you like

Origin blog.csdn.net/cj9551/article/details/110820144