是否可以从Geoserver导出图层配置,并将其导入到另一台计算机上的Geoserver?每次切换计算机时都要设置图层,这需要很长时间。
是否可以从Geoserver导出图层配置,并将其导入到另一台计算机上的Geoserver?每次切换计算机时都要设置图层,这需要很长时间。
对于将Geoserver 2.x迁移到Geoserver 2.y(使用Tomcat):
Make a backup of your directory "data" of Geoserver 2.x.
Stop Geoserver 2.x in Tomcat and then, stop Tomcat (sudo /etc/init.d/tomcatx stop).
Remove (a backup is best) your directory "geoserver" of "webapps". (generally is tomcatx/webapps).
Install the new version of Geoserver (in this case Geoserver 2.y). If you are using Tomcat, you could use the war file.
Edit the file "web.xml" (tomcatx/webapps/geoserver/WEB-INF/web.xml) whit the new path. For example:
<context-param>
<param-name>GEOSERVER_DATA_DIR</param-name>
<param-value>/var/lib/tomcatx/webapps/geoserver/data</param-value>
</context-param>
到
<context-param>
<param-name>GEOSERVER_DATA_DIR</param-name>
<param-value>new-path-of-data</param-value>
</context-param>
将你的新目录 "security" 移动到其他位置(通常是 tomcatx/webapps/geoserver/data/security)。
更改数据目录的权限为 tomcatx。(chgrp,chown)
重新启动 Tomcat。
此致敬礼。
Geoserver 2.x 是旧版本。
Geoserver 2.y 是新版本。
tomcatx 是您的 Tomcat 版本。
1.copy folder "data" in geoserver to on another computer and replace it to .war and geoserver folder
2-dump database old to new computer
3-restart tomcat
/etc/init.d/tomcat7 restart
4-change owner "data" on geoserver to tomcat user
-cd 到 /var/lib/tomcat7/webapps/geoserver sudo chown -R tomcat7 data sudo chown -R :tomcat7 data
5-reload store on geoserver