修改conf目录下的server.xml和web.xml
打开就看到了
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
打开就看到了
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
假如我的目录是webapps下的mywork
改怎么该?
在conf下的erver.xml和web.xml可以修改很多东西。端口号好像也在那里修改。to shuangyulove(双宇) startup.bat启动服务。不过你要先Build,这个就比较麻烦了。
在conf下的server.xml和web.xml可以修改很多东西。端口号好像也在那里修改。
可以查找找到[PORT]修改8080端口OVER!
用记事本打开Tomcat4目录下的子目录conf下的server.xml文件,增加这样一行(假设你现在要把D:\myroot下的东西作为默认根目录)
<Context path="" docBase="D:\myroot" debug="0" reloadable="true"></Context>2.改端口号,将8080改成80:
用记事本打开Tomcat4目录下的子目录conf下的server.xml文件,把这下面一段配置参数的8080改为80保存即可。
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>
tomcat是没有什么tomcat.bat的
启动用.\bin下的startup
关闭用shutdown
但是,*.class 应放置在哪里呢?