在Ubuntu11.10上安装Tomcat6
sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples
Start tomcat server
sudo /etc/init.d/tomcat6 start
Stop tomcat server
sudo /etc/init.d/tomcat6 stop
Restart tomcat server
sudo /etc/init.d/tomcat6 restart
Get tomcat server status
sudo /etc/init.d/tomcat6 status
After installation type http://localhost:8080 or http://localhost:8080/examples/servlets/ in your browser.Now you should see tomcat welcome page
* To enable admin web based features add the following lines to your /etc/tomcat6/tomcat-user.xml
<role rolename="manager"/>
<role rolename="admin"/>
<user name="admin" password="secret_password" roles="manager,admin"/>
* you should be able to see your manage page here http://your_ip_goes_here:8080/manager/html
* log in with the name and password you just set in /etc/tomcat6/tomcat-users.xml
* ls /var/lib/tomcat6 directory. you should see these directories conf, logs, webapps, work
Change tomcat server to run on port 80
If you want to Change tomcat server to run on port 80 follow this procedure
You need to edit the /etc/tomcat6/server.xml file
gedit /etc/tomcat6/server.xml
对于手动安装配置:
前提:
安装 jdk,配置 jdk,
* 下载 tomcat
如 apache-tomcat-6.0.35.zip
* 解压 tomcat 到适当位置
* 命令行进入 tomcat_home/bin
* 为所有 .sh 文件添加 执行权限
sudo chmod +x *.sh
* (这一步也可忽略)为 tomcat 设置 jdk
编辑 tomcat_home/bin/setclasspath.sh,
在 正式代码前 加上:
export JAVA_HOME=/usr/java/jdk1.6.0_13
等号后的值根据自己具体的jdk位置而设定,
* 启动 tomcat
./shutdown.sh
./startup.sh
* 通过 http://localhost:8080 访问
分享到:
相关推荐
ubuntu linux下安装tomcat
ubuntu 16.04安装tomcat 8.0图文详细教程
ubuntu 下安装配置tomcat,亲自实践总结的文档,ubuntu版本:ubuntu-10.10-amd64
Ubuntu 12.04 安装配置 Tomcat 7.0.40Tomcat 服务器.docx
Ubuntu下安装jdk&tomcat Ubuntu下安装jdk&tomcat Ubuntu下安装jdk&tomcat
在ubuntu系统中安装jdk、tomcat. 在ubuntu系统中安装jdk、tomcat. 在ubuntu系统中安装jdk、tomcat.
Ubuntu系统安装Tomcat需要的。jdk-8u221-linux-x64.tar.gz apache-tomcat-8.5.43.tar.gz
如何在Ubuntu11.10版本配置JDK Tomcat Maven jenkins
Ubuntu上Tomcat部署war包失败的解决办法.docx
ubuntu中安装mysql/apache/tomcat/php环境
ubuntu mysql apache2 tomcat 安装配置
ubuntu安装java,tomcat,步骤包括安装过程,配置内容。
该文档介绍了ununtu如何将tomcat注册成系统服务。
ubuntu环境安装tomcat,1.配置基本环境,6.tomcat环境,安装JDK8,mysql,4.kubernetes额外组件
ubuntu+jdk+tomcat+eclipse 亲自实验 按照步骤操作即可
ubuntu linux 下apache与tomcat的整合.txt
Ubuntu虚拟机tomcat服务器搭建与局域网主机互联
ubuntu8.04中配置java+tomcat+eclipseMyEclipse开发环境(更新)
ubuntu中部署tomcat
ubuntu下安装jdk,tomcat教程