英文:
Failed to start Apache Tomcat from netbeans macOSX (Problem 1: deployment error: starting of Tomcat failed, Problem 2: port 8080 already in use)
问题
这是对我有效的方法。 1) 进入 **/Downloads/apache-tomcat-9.0.37/conf** 在 server.xml 文件中,对于 HTTP/1.1 的 Connector 元素,添加以下属性:server="Apache-Coyote/1.1"。 示例: <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" server="Apache-Coyote/1.1" /> 2) 进入 netbeans8.2.app -> 右键单击显示包内容 -> contents -> resources -> netbeans -> enterprise -> modules -> 然后您可以找到并替换文件 ("org-netbeans-modules-tomcat5.jar") 为 "https://issues.apache.org/jira/secure/attachment/12994224/org-netbeans-modules-tomcat5.jar"。
https://issues.apache.org/jira/secure/attachment/12994224/org-netbeans-modules-tomcat5.jar
英文:
> This is how it worked for me.
> 1) Go to /Downloads/apache-tomcat-9.0.37/conf
>
> In the server.xml file, in the Connector element for HTTP/1.1, add the following attribute: server="Apache-Coyote/1.1".
>
> Example:
>
> <Connector
> connectionTimeout="20000"
> port="8080"
> protocol="HTTP/1.1"
> redirectPort="8443"
> server="Apache-Coyote/1.1"
> />
>
> 2) Go to netbeans8.2 . app -> right click show package contents ->contents->resources->netbeans->enterprise->modules->
>
> then you can find and replace the file ("org-netbeans-modules-tomcat5.jar") with "https://issues.apache.org/jira/secure/attachment/12994224/org-netbeans-modules-tomcat5.jar"
> <https://issues.apache.org/jira/secure/attachment/12994224/org-netbeans-modules-tomcat5.jar>
答案1
得分: 1
kill the process after searching the process id
ps -ef|grep tomcat
then
kill -9 <processid>
Then start tomcat again.
英文:
kill the process after searching the process id
ps -ef|grep tomcat
then
kill -9 <processid>
Then start tomcat again.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论