1、下载tomcat。http://tomcat.apache.org/
Core:
zip (pgp, md5, sha1) 这个
tar.gz (pgp, md5, sha1) 或者这个
32-bit Windows zip (pgp, md5, sha1)
64-bit Windows zip (pgp, md5, sha1)
64-bit Itanium Windows zip (pgp, md5, sha1)
32-bit/64-bit Windows Service Installer (pgp, md5, sha1)
2、 解压到 /usr/lcoal/tomcat
tar -xvf tar -xvf apache-tomcat-8.0.22.tar.gz cp -r apache-tomcat-8.0.22 /usr/local/tomcat
3、启动tomcat
/usr/local/tomcat/bin/startup.sh
4、访问tomcat, http://localhost:8080
可以配置tomcat管理账号,编辑/usr/local/tomcat/conf/tomcat-users.xml,添加
<role rolename="admin-gui" /> <user username="tomcat" password="s3cret" roles="admin-gui" />