Ubuntu安装tomcat
来源:互联网 发布:mac上玩dota2 编辑:程序博客网 时间:2024/06/03 20:40
- 从http://tomcat.apache.org/download-90.cgi 下载apache-tomcat-9.0.0.M11.tar.gz
- 移动到linux后移动到/opt/tomcat目录下
- 解压 sudo tar -zxvfapache-tomcat-9.0.0.M11.tar.gz
- 打开sudo gedit ~./bashrc,添加jdk和jre配置信息:
#JAVA
exportJAVA_HOME=/opt/java/jdk1.8.0_101
exportJRE_HOME=JAVAHOME/jreexportCLASSPATH=.: {JAVA_HOME}/lib:JREHOME/libexportPATH= {JAVA_HOME}/bin:$PATH
#tomcat
exportTOMCAT_HOME=/opt/tomcat/apache-tomcat-9.0.0.M11 启动tomcat
./bin/startup.sh但是出现:
linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least one of these environment variable is needed to run this program
解决方案:
编辑文件 /usr/local/tomcat/bin/catalina.sh (根据你自己的jdk路径进行修改) 在文件的正文开头,即正式代码前,大概在99行添加如下代码
export JAVA_HOME=/opt/java/jdk1.8.0_101export JRE_HOME=/opt/java/jdk1.8.0_101/jre
6、 验证tomcat配置和安装是否成功
在浏览器地址栏输入localhost:8080
7、 关闭tomcat
./bin/shuntdown.sh
阅读全文
0 0
- Ubuntu安装TomCat
- Ubuntu安装TomCat
- Ubuntu安装Tomcat
- Ubuntu安装TomCat
- ubuntu 安装tomcat服务器
- Ubuntu安装TomCat
- ubuntu下安装tomcat
- ubuntu 安装tomcat
- Ubuntu安装TomCat
- ubuntu 安装 Tomcat
- ubuntu下安装tomcat
- ubuntu安装配置tomcat
- ubuntu 安装tomcat
- Ubuntu安装TomCat
- ubuntu下安装tomcat
- Ubuntu安装TomCat
- ubuntu 下安装tomcat
- ubuntu 12.04 安装 tomcat
- 对 SSL协议进行wireshark抓包实验
- Mongodb字段更新$setOnInsert操作符
- 二叉树的遍历
- SSH框架 Blob类型图片处理
- LPC1768 移植freeRTOS
- Ubuntu安装tomcat
- Java SimpleFileVisitor遍历文件夹与File遍历文件夹的速度对比
- SWD下载程序出现错误cannot access memory
- Spring Cloud原理分析及使用<一>
- Spark简介
- JavaScript call和apply的区别
- POJ3415 Common Substrings 【后缀数组 + 单调栈】
- mongo数据库的各种查询语句示例(比较全的)
- [springBoot系列]--springBoot注解大全