tomcat问题的解决
问题一 点击startup.bat文件 ,dos一闪而过
在计算机---属性---高级系统设置---环境变量中配置JAVA_HOMG 我的是G:\jdk1.7.0_71(jdk的安装路径)
另一个是<Context docBase="D:\html" path="/demo"></Context>
写成<Context doc="D:\html" path="/demo"></Context>
问题二
java.net.BindException: Address already in use: JVM_Bind <null>:8080
这里是说明启动了2个tomcat服务器,8080,端口号有冲突.
如何解决找到D:\apache-tomcat-7.0.53\conf\service.xml
<Server port="8005" shutdown="SHUTDOWN"> 22行 ,修改为
<Server port="8006" shutdown="SHUTDOWN">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" /> 70行,修改为
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> 92行,修改为
<Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />
在重启就tomcat服务器,就好了
问题一 点击startup.bat文件 ,dos一闪而过
在计算机---属性---高级系统设置---环境变量中配置JAVA_HOMG 我的是G:\jdk1.7.0_71(jdk的安装路径)
另一个是<Context docBase="D:\html" path="/demo"></Context>
写成<Context doc="D:\html" path="/demo"></Context>
问题二
java.net.BindException: Address already in use: JVM_Bind <null>:8080
这里是说明启动了2个tomcat服务器,8080,端口号有冲突.
如何解决找到D:\apache-tomcat-7.0.53\conf\service.xml
<Server port="8005" shutdown="SHUTDOWN"> 22行 ,修改为
<Server port="8006" shutdown="SHUTDOWN">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" /> 70行,修改为
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> 92行,修改为
<Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />
在重启就tomcat服务器,就好了