本文是元宇宙时空大数据平台开发的一些经历,环境是已经安装好了Hadoop的三台服务器,包括一台主机。

一、安装tomcat

原本可以使用yum -y install tomcat直接安装很难下载需要的资源:在我的服务器上经常会显示尝试其他镜像,处理方法是

先在本机下载好tomcat再上传到服务器。

下载路径是Index of /dist/tomcat/tomcat-8/v8.5.4/bin (apache.org)

下载apache-tomcat-8.5.4.tar.gz

等待下载完毕之后,打开Xshell,开始文件传输,连接上服务器。

文件传输有两种方式,第一种是

连接之后可以执行命令:

然后输入rz进行文件传输。

这里使用另一种方法,点击工具栏的“新建文件传输”。

将下载好的apache-tomcat-8.5.4.tar.gz   文件传到/usr/local文件下。

在命令行中输入:

启动tomcat输入/usr/local/tomcat/bin/startup.sh

终止输入/usr/local/tomcat/bin/shutdown.sh

服务器的防火墙没有启动,这里不配置防火墙了。

测试一下:访问http://125.221.232.241:8080/可以看到界面:(8080前面的IP修改成对应自己服务器的IP就行)

二、下载geoserver

访问

Download GeoServer from SourceForge.net,下载然后解压。

同样使用之前按的方法,使用Xftp,找到解压文件夹下的geoserver.war文件,放到/usr/local/tomcat/webapps文件下

进入8080,点击Manager App

管理页面会报错:tomcat管理页面403 Access Denied,是因为tomcat本来的配置限制了user的访问。

三、配置tomcat

首先在conf/tomcat-users.xml文件里面,修改所有代码:(其中高亮的username和password都是后面用得到的,这里可以进行修改,后面记住就行)

<?xml version='1.0' encoding='cp936'?>
<!--Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements.  See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance withthe License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
-->
<tomcat-users xmlns="http://tomcat.apache.org/xml"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"version="1.0">
<user username="admin" password="admin" roles="manager-gui" />
<!--By default, no user is included in the "manager-gui" role requiredto operate the "/manager/html" web application.  If you wish to use this app,you must define such a user - the username and password are arbitrary.Built-in Tomcat manager roles:- manager-gui    - allows access to the HTML GUI and the status pages- manager-script - allows access to the HTTP API and the status pages- manager-jmx    - allows access to the JMX proxy and the status pages- manager-status - allows access to the status pages onlyThe users below are wrapped in a comment and are therefore ignored. If youwish to configure one or more of these users for use with the manager webapplication, do not forget to remove the <!.. ..> that surrounds them. Youwill also need to set the passwords to something appropriate.
-->
<!--<user username="admin" password="<must-be-changed>" roles="manager-gui"/><user username="robot" password="<must-be-changed>" roles="manager-script"/>
-->
<!--The sample user and role entries below are intended for use with theexamples web application. They are wrapped in a comment and thus are ignoredwhen reading this file. If you wish to configure these users for use with theexamples web application, do not forget to remove the <!.. ..> that surroundsthem. You will also need to set the passwords to something appropriate.
-->
<!--<role rolename="tomcat"/><role rolename="role1"/><user username="tomcat" password="<must-be-changed>" roles="tomcat"/><user username="both" password="<must-be-changed>" roles="tomcat,role1"/><user username="role1" password="<must-be-changed>" roles="role1"/>
-->
</tomcat-users>

更改登录manager的账号和密码都是admin,然后修改/webapps/manager/META-INF/目录下context.xml文件中有关Valve的内容:

    <Valve className="org.apache.catalina.valves.RemoteAddrValve"  allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|\d+\.\d+\.\d+\.\d+" />

此时可以访问manager app了,点击geoserve。

注册就能使用了。

Centos7安装tomcat,下载geoserve,配置tomcat,发布geoserve相关推荐

  1. tomcat下载与配置

    一 windows版本tomcat下载与配置 1 tomcat官网下载地址:https://tomcat.apache.org/download-90.cgiJ 2 安装smart tomcat, 在 ...

  2. Centos7 安装lightdm openbox tint2配置最简单桌面

    Centos7 安装lightdm openbox tint2配置最简单桌面 一安装epel源 二安装桌面环境和软件 1安装X窗口系统 2安装openbox窗口管理器 3安装xfce4-termina ...

  3. Tomcat快速入门(Tomcat安装 把一个项目发布到tomcat中 Eclipse配置Tomcat idea配置tomcat)

    文章目录 服务器的概念 服务器 Web服务器软件:接收客户端发送的请求和响应客户端请求. 常见的Web服务器软件 Tomcat安装 win下启动乱码问题解决 Tomcat目录介绍 如何把一个项目发布到 ...

  4. tomcat下载和配置(简单,详细)

    下载 官网:http://tomcat.apache.org/ 找到需要的版本,点击download 在download页面,选择需要下载的.(分为压缩版和安装版,我比较推荐压缩版,省事解压缩就好) ...

  5. Centos7 安装Mini后相关配置

    1.CentOS 7最小化安装后找不到'ifconfig'命令--修复小提示 如果你不知道在哪里可以找到ifconfig命令,请按照以下简单的步骤来找到它.首先,让我们找出哪个包提供了ifconfig ...

  6. [MySQL免安装版本] 下载、配置、启动、密码修改

    今天给大家带来一篇关于MySQL数据库免安装版本的配置教程,那么过程比较简单直接上干货. 目录 一.下载MySQL免安装版本 二.配置MySQL 三.启动MySQL 四.使用客户端连接MySQL 五. ...

  7. Docker:docker简介及CentOS7安装Docker,以及配置镜像加速问题解决

    一.Docker是什么: 一款产品从开发到上线,从操作系统,到运行环境,再到应用配置.作为开发+运维之间的协作我们需要关心很多东西,这也是很多互联网公司都不得不面对的问题,特别是各种版本的迭代之后,不 ...

  8. Centos7安装JDK8以及环境配置

    下载 下载网址:JDK下载链接点这 选择与自己系统相匹配的版本,我的是Centos7 64位的,所以如果是我的话我会选择此版本,要记住的你们下载的话选择的是以tar.gz结尾的. 安装 演示使用jdk ...

  9. CentOS7安装可移植Prometheus+grafana--alertmanager配置邮件告警

    背景 前两篇博文我们介绍了Prometheus及其相关的监控组件,本次我们记录一下告警组件:alertmanager 安装配置 获取安装包 官方下载地址:https://prometheus.io/d ...

  10. VMware、CentOS7安装及静态ip配置和Xshell远程工具连接(个人学习笔记)

    1.下载步骤: 官网:VMware - Delivering a Digital Foundation For Businesses 2.VMware安装步骤: 安装前建议关闭windows防火墙 路 ...

最新文章

  1. uniapp设置模板路径页面样式混乱解决办法
  2. centos7虚拟机网桥模式不通_CentOS7虚拟机桥接设置及问题
  3. uart与usart区别
  4. Windows phone 8 学习笔记(8) 定位地图导航
  5. JLINK通过SW模式下载程序的方法
  6. 16.ajax_case08
  7. subprocess.Popen 运行windows命令出现“句柄无效”报错的解决方法
  8. GDCM:智能指针的测试程序
  9. Mysql主从复制原理以及实现
  10. LNMP单机高并发的简单优化
  11. Css fade()函数降低颜色变量透明度
  12. 程序人生 | 35岁以上的 iOS 程序员都到哪里去了?
  13. Linux系统下授权MySQL账户访问指定数据库和数据库操作
  14. 一些mootools的资源
  15. Linux下写盘速度测试程序,Linux下硬盘读写速度测试
  16. 常用符号大全 特殊符号
  17. Character.isAlphabetic()方法判断中文字符时,返回值为true
  18. Diffusion Models和GANs结合
  19. [读书总结]大数据时代
  20. 万国数据赢得GITC 年度互联网最佳服务奖

热门文章

  1. iOS私有API检测扫描思路以及工具开发(Python3 + Django)
  2. struts2_action获取web资源的两种方式
  3. RabbitMQ上手记录–part 6-Shovel
  4. 1.前端自动化测试 之 视觉测试
  5. PHP税前税后,php计算税后工资的方法
  6. RabbitMQ·入门·壹
  7. 使用python网络爬虫爬取新浪新闻(一)
  8. 从微服务基本概念到核心组件-通过一个实例来讲解和分析
  9. 【FFNN负荷预测】基于人工神经网络的空压机负荷预测(Matlab代码实现)
  10. 人生就要像HP打印机------不“卡住”要“流畅”