Tomcat问题之 启动 Cannot find /usr/local/tomcat/bin/setclasspath.sh 原创 东山富哥 2022-07-11 15:02:59 博主文章分类:tomcat ©著作权 文章标签 tomat启动问题 linux环境 解决方案 tomcat 文章分类 虚拟化 云计算 ©著作权归作者所有:来自51CTO博客作者东山富哥的原创作品,请联系作者获取转载授权,否则将追究法律责任 1.问题linux环境下,启动startup命令报Cannot find /usr/local/tomcat/bin/setclasspath.sh2.解决方案任一目录下面执行下面命令unset CATALINA_HOME再次启动即可,问题解决 赞 收藏 评论 分享 举报 上一篇:zookeeper客户端ZooInspector的使用 下一篇:nginx12-rewrite模块 提问和评论都可以,用心的回复会被更多人看到 评论 发布评论 全部评论 () 最热 最新 相关文章 Linux启动tomcat 1、启动tomcat1、先到tomcat的目录中,找到bin文件夹,查看文件夹内容三种方式启动tomcat方式一:直接启动 ./startup.sh方式二:作为服务启动 nohup ./startup.sh &方式三:控制台动态输出方式启动 ./catalina.sh run 动态地显示tomcat后台的控制台输出信息,Ctrl+C后退出并关闭服务1.1 ./startup.sh或者 tomcat 运行日志 yum安装 linux 定时关闭和启动tomcat服务 便于在节假日的时期需要在指定时间开启和关闭tomcat服务的一种方法点击键盘的win键,搜索“任务计划程序”,或者win+R键,在运行里面输入 taskschd.msc回车即可弹出以下界面。点击右上角的 “创建任务”,会弹出来以下界面,填写上对应的东西以后就可以点击上面得“触发器”。到了触发器界面以后点击左下角的新疆按钮,会弹出来一下界面,在此界面是设置出发脚本的时间了,到点以后系统会自动执行设定 tomcat 触发器 定时任务 Tomcat基础 一、Java基础1.1 后台应用架构1.1.1 单体架构单体架构(Monolithic Architecture)是一种传统的软件架构模式,把所有的功能都放在同一个应用里,将整个应用部署在一台服务器上。在单体架构中,所有的功能模块都被打包在一起(比如Java实现就打包成jar包或war包部署),共享同一个代码库和数据库。 优点:开发简单:由于整个 Java tomcat 解决tomcat启动报错Cannot find /usr/local/tomcat/bin/setclasspath.sh问题 在用命令./startup.sh启动tomcat时报错:Cannot find /usr/local/tomcat/bin/setclasspath.shThis file is needed to run this program不用去搜了,直接在服务黑框中执行以下这一行就可以了unset CATALINA_HOME tomcat 问题:Cannot find /usr/local/tomcat7/bin/setclasspath.sh Cannot find /usr/local/tomcat7/bin/setclasspath.shThis file is needed to run this program profile tomcat setclasspath linux篇-tomcat:Cannot find /usr/local/tomcat1/bin/setclasspath.sh 首先看下报错代码: Cannot find /usr/local/tomcat1/bin/setclasspath.sh This file is needed to run this program 这个可能是没有在 /etc/profile 中配置环境,这是第一种可能;如果是这种情况的话,可以这 tomcat 配置文件 文件权限 linux下启动tomcat,Cannot find setclasspath.sh 今天部署项目的时候遇到这么一个问题,据查,导致产生该错误的原因是:可能由于JDK-1.8.x版本问题导致的。提供我解决 linux tomcat java 文件保存 linux系统中启动tomcat报错Cannot find /root/tomcat/bin/setclasspath.sh 今天在启动tomcat的时候莫名其妙的报了个这个错,在网上搜好多都说是要改配置文件啥的,都挺麻烦的。我觉得我的问题不是配置文件的问题,就没有去改,找到了个新方法。 tomcat linux java 配置文件 Cannot find tomcat-9.0.0.M21/bin/setclasspath.sh 问题描述:将linux上的tomcat直接拷贝到以一个路径下,执行sh startup.sh 报错。1、vim /etc/profile (主要修改如下图所标记的值 )2、source /etc/profile (设置环境变量立即生效)解决:修改全局变量配置文件。 tomcat java 环境变量 linux tomcat变量环境脚本setclasspath.sh分析 之所以分析setclasspath.sh脚本,是因为catalina.sh脚本会引用到这个脚本,如果不对其进行分析,之后看catalina.sh脚本就会不知道一些变量没有申明和赋值怎么会跑出来,本篇文章是为下一篇“tomcat运行控制脚本catalina.sh分析”做铺垫。#!/bin/sh# Licensed to tomcat setclasspath.sh 变量环境脚本 VM启动tomcat /usr/local/tomcat/bin/catalina.sh: line 501: /usr/local/jdk/bin/java: Permission denied 启动tom java tomcat linux zookeeper jdk Tomcat启动不了出现找不到setclasspath.sh文件的解决办法 unset CATALINA_HOME tomcat 解决/usr/bin/ld: cannot find -lxxx 问题 linux下编译应用程序常常会出现如下错误: &n linux 应用程序 休闲 cannot ld /usr/bin/ld: cannot find -lz 编译过程中遇到如下错误:/usr/bin/ld: cannot find -lzcollect2: error: ld returned 1 exit status 编译的时候出现"/usr/bin/ld: cannot find -lz"错误,需要安装zlib-dev这个包,在线安装命令为:sudo apt-get install zlib1g-dev linux 编译过程 /usr/bin/ld: cannot find -lltdl /usr/bin/ld: cannot find -lltdl lltdl /usr/bin/ld: cannot find -lpcap /usr/bin/ld: cannot find -lpcap 问题解决办法问题是缺少libpcap库。解决办法: 安装libpcap库libpcap库的官网是www.tcpdump.org1、wget http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz2、tar xzvf libpcap-1.3.0.tar.gz3、cd libpc /usr/bin/ld: cannot usr/bin/ld: cannot find -lxxx 通常在软件编译时出现的usr/bin/ld: cannot find -lxxx的错误,主要的原因是库文件并没有导入的ld检索目录中。 解决方式: 1. 确认库文件是否存在,比如-l123, 在/usr/lib, /usr/local/lib,或者其他自定义的lib下有无lib123.so, 如果只是存在l usr/bin/ld: cannot f /usr/bin/ld: cannot find -lc 现象:执行gcc静态编译程序时报错:/usr/bin/ld: cannot find -lccollect2: ld returned 1 exit statusmake: *** [gcc_dry2] Error 1(或者调用Makefile编译时报错)原因:程序链接需要静态库,系统没有安装静态库导致报错解决:安装静态库#sudo yum install glibc-static /usr/bin/ld: cannot /usr/bin/ld cannot find -lGL 安装mujoco报错: /usr/bin/ld cannot find -lGL 解决方法: sudo apt install libgl1-mesa-dev 杂谈 解决方法 /usr/bin/ld: cannot find -lmysqlclient 环境 centos5.7 x86_64 系统上安装postfix ! 错误"/usr/bin/ld: cannot find -lmysqlclient"类似/usr/bin/ld: cannot find -xxxx的错误有很多, 最简单的判断一下:是否安装相应的mysql-devel包发现mysql-devel 包已经安装了#&nb 职场 mysql 数据库 休闲 /usr/bin/ld: cannot R4900 G3服务器如何在bios下使用raid卡格式化磁盘 什么是 RAIDRAID (Redundant Array of Inexpensive Disks)由加州伯克利大学的几位教授在上世纪八十年代提出, 刚开始的设想是使用廉价的硬盘, 但是随着越来越多硬盘产商进入这个领域, 它们希望赚取更多的利润, 恰好需要使用 RAID 技术的都是一些有钱的主, 企业级硬盘 (Enterprise Drive) 在数据中心大行其道, Inexpensive 变得 388p怎么做raid 数据 校验和 Data postgres释放空间 1.架构演变在O2O外卖领域,基于位置服务的需求越来越多,这就要求DB能够存储地理位置信息,而在开源数据库中,对空间地理数据支持比较好的要数PG的插件Postgi。 饿了么在使用PG的过程中,由于性能及容量的原因,DB结构也在不断发生变化。在刚开始使用PG时,公司使用的是最简单的结构一主两从,读写分离,Master负责写,Slave负责读,一切都是那么快乐的运行着。但过了一段时间,随着 postgres释放空间 删除用户会释放表空间么 数据 数据库 脏数据 怎么手动清理activemq中的topic 前一篇文案中提到了消息的接收和发送持久化消息,这篇文章我们看看消息的过期、消息的选择器和消息的优先级。一、消息的过期允许消息过期 。默认情况下,消息永不会过期。如果消息在特定周期内失去意义,那么可以设置过期时间。 有两种方法设置消息的过期时间,时间单位为毫秒: 1.使用消息生产者的setTimeToLive 方法为所有的消息设置过期时间。 2.使用消息生产者的send 方法 java 选择器 优先级 sudoer命令 文章目录linux缩写Linux man快捷键Linux vi/vim快捷键linux终端操作(shell:bash、sh)linux快捷键linux集成命令查看所有用户列表查看指定用户家目录路径apt-get 命令大全xshell操作visual studioLinux VSCode快捷键windows vscode快捷键c语言缩写c++缩写计算机相关其他缩写Clion快捷键(设置成VS效果) sudoer命令 linux c语言 其他 快捷键 Java中接口作为成员变量类型 这属于 java 的基础知识,你可以不了解,也可以不拿它当一回事,代码也一样能敲的顺畅;这是很久之前,我从 C 转 java 刚入门那会的看法,那会我坚持自己的理念:重实践,讲运用,轻理论。当然,对同一样事物,在不同阶段也会有不一样的看法,这理念在某个时段已经不适合我,早就被抛弃了。不扯淡了,直接进入主题。java 中的变量大致分为 成员变量 和 局部变量 两大类。成员变量:在类体里面 Java中接口作为成员变量类型 java中变量的定义 System 类变量 代码块