Ubuntu下安装Tomcat7
下载Tomcat压缩包:
解压,并移动到习惯的存储位置:
修改设置:
1 |
wget -O apache-tomcat-7.0.55.tar.gz "http://apache.mirrors.timporter.net/tomcat/tomcat-7/v7.0.55/bin/apache-tomcat-7.0.55.tar.gz" |
解压,并移动到习惯的存储位置:
1 2 3 |
tar -zxvf apache-tomcat-7.0.55.tar.gz rm tomcat-7.0.55.tar.gz mv apache-tomcat-7.0.55 /usr/local/ |
修改设置:
1 2 |
vi /usr/local/apache-tomcat-7.0.55/conf/server.xml #修改HTTP监听端口为你需要的端口,默认8080 |
Leave a Reply