tomcat
<plugins>
? ? ?<plugin>
? ? ? ? ? ? ? ? <groupId>org.apache.tomcat.maven</groupId>
? ? ? ? ? ? ? ? <artifactId>tomcat7-maven-plugin</artifactId>
? ? ? ? ? ? ? ? <version>2.1</version>
? ? ? ? ? ? ? ? <configuration>
? ? ? ? ? ? ? ? ? ? <port>9091</port>
? ? ? ? ? ? ? ? ? ? <path>/mgr</path>
? ? ? ? ? ? ? ? ? ? <uriEncoding>UTF-8</uriEncoding>
? ? ? ? ? ? ? ? ? ? <finalName>mgr</finalName>
? ? ? ? ? ? ? ? ? ? <server>tomcat7</server>
? ? ? ? ? ? ? ? </configuration>
? ? ? ? ? ? </plugin>
</plugins>
端口被占用
在命令行輸入?
netstat -aon|findstr "8080"
如果有信息顯示,則表明有程序占用了“8080”這個端口,反之則沒有任何程序占用這個端口
以此為例:
TCP? ? 127.0.0.1:8080? ? ? ? 0.0.0.0:0? ? ? ? ? ? ? LISTENING? ? ? 20444
以上表明端口被進(jìn)程號為 20444的進(jìn)程占用,繼續(xù)執(zhí)行以下命令:
tasklist|findstr "20444"??
控制臺出現(xiàn)了以下內(nèi)容:
Java.exe? ? 20444 Console? ? ? ? 0? ? 43,288 K
看到了吧,java.exe占用了這個8080的端口號。