• download
  [plaintext]
1
wget http://apache.fayea.com/tomcat/tomcat-9/v9.0.0.M15/bin/apache-tomcat-9.0.0.M15.tar.gz
  • unzip
  [plaintext]
1
2
3
$ tar -zxf apache-tomcat-9.0.0.M15.tar.gz $ ls apache-tomcat-9.0.0.M15 apache-tomcat-9.0.0.M15.tar.gz
  • rename
  [plaintext]
1
2
3
$ mv apache-tomcat-9.0.0.M15 tomcat9 $ ls apache-tomcat-9.0.0.M15.tar.gz tomcat9
  • config port and encode

edit server.xml change content like this:

  [plaintext]
1
2
$ pwd /home/hbb/tool/tomcat/tomcat9/conf
  [plaintext]
1
2
3
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>