Geoserver data directory migration Configuration

Source: Internet
Author: User

Previously, the directory where geoserver stores data is the./tomcat/webapps/geoserver/data directory.

We can cp the contents of the directory to the same directory of the new server, but now we find that this is not the best way to transfer data:

Official documents: http://docs.geoserver.org/stable/en/user/datadirectory/data-dir-setting.html

In Linux, we can set the environment variables of the data directory:

% Export geoserver_data_dir =/var/lib/geoserver_data

You can also configure geoserver/WEB-INF/Web. xml:

<Web-app>... <context-param> <param-Name> geoserver_data_dir </param-Name> <param-value>/var/lib/geoserver_data </param-value> </context-param>... </Web-app>

After Tomcat is restarted, geoserver automatically identifies the new data directory And loads the resources.

 

End.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.