官术网_书友最值得收藏!

Upgrading your installation

It is a good thing to know that the GeoServer development team is working hard to frequently release new versions. You may be sure that most of the bugs will be fixed in a short time. On the other hand, this means you have to carefully plan an upgrading strategy in order to download and install any new release without having this affect your site too strongly.

Before you get too worried about this, we want to reassure you. Upgrading GeoServer is not a challenging task, and, with some simple steps, you may preserve your configuration when migrating to a new release.

We will explore the interface and the configuration option of GeoServer in the next chapter. For now, keep in mind that all these settings are stored in the file system in a folder called the GeoServer data directory. As you may guess from its name, it may also contain the spatial data you want to publish with GeoServer; although, this is not always the case. The most important content for the migration task is the configuration. All the configuration settings are contained in XML files.

We will design a detailed procedure to upgrade in Chapter 11, Tuning GeoServer in a Production Environment, but we already want your attention on the fundamental steps required as follows:

  1. Select a folder external to the application for the data directory. By default, the GeoServer data directory is inside the application.
  2. Backup the data directory frequently and always do a full backup before starting to upgrade GeoServer.
  3. Undeploy the old version of GeoServer.
  4. Stop the servlet container, for example, Tomcat.
  5. Remove any temporary content from the servlet container.
  6. Start the servlet container and deploy the new GeoServer release.
  7. Point the new GeoServer to the external data directory.

Another important consideration about the data directory is its internal structure. Time after time, a new release of GeoServer applies changes to the structure that makes the migration an irreversible operation. In other words, the data directory is no more usable by a GeoServer release older than the last you deployed. This is the main reason you should always perform a full backup before starting the upgrade.

As a rule of thumb, patch and minor version migrations, for example, from 2.9.0 to 2.9.1, does not modify the internal structure of data directory, while you should expect issues when upgrading to a major release, for example, from 2.8 to 2.10.

Anyway, keep in mind that some minor version migrations may not be reversible since newer versions of GeoServer may make backward-incompatible changes to the data directory.

主站蜘蛛池模板: 沙洋县| 石阡县| 溧阳市| 依安县| 五家渠市| 仁怀市| 兴安盟| 乌苏市| 盐城市| 界首市| 太白县| 葫芦岛市| 南阳市| 赫章县| 皋兰县| 高碑店市| 会同县| 隆化县| 星子县| 郯城县| 西林县| 泸定县| 会宁县| 榆树市| 襄樊市| 莱芜市| 武冈市| 德安县| 石景山区| 南华县| 吐鲁番市| 师宗县| 项城市| 左权县| 宁陵县| 宁德市| 宝山区| 江口县| 鸡东县| 抚顺市| 宝丰县|