分类文章

热门文章

The BASEDIR environment variable is not defined correctly

The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program

刚在linux上装了个tomcat,启动的时候报了上面的错误,原来是从windows上拷的安装包中脚本缺少可执行的权限。使用chmod命令修改bin下所有文件的权限 chmod 777 ./*

请给本文打分   
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

tomcat配置gzip

tomcat配置gzip其实非常简单,只需修改conf/server.xml的内容即可

1
2
3
4
5
6
7
8
9
10
11
12
<!– Define a non-SSL HTTP/1.1 Connector on port 8080 –>
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!– Note : To disable connection timeouts, set connectionTimeout value to 0 –>
<!– Note : To [...]

请给本文打分   
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...