问题大杂烩

1.在dos命令下查看tomcat占用的进程,首先在运行里输入cmd进入dos,输入命令“netstat -ano | findstr 8080”(tomcat默认端口为8080)。查出PID(最后一列就是),假设PID为207340,输入命令“taskkill /F /PID 207340”,这样8080端口就释放了

问题大杂烩_第1张图片
8080.png

2.maven running时报错:
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project taotao-manager-web: Failed to clean project: Failed to delete E:\Projects\MyJava\JavaSSM\taotao-manager\taotao-manager-web\target\tomcat\logs\access_log.2017-10-18 -> [Help 1]
“Failed to clean project: Failed to delete E:\Projects\MyJava\JavaSSM\taotao-manager\taotao-manager-web\target\tomcat\logs\access_log”表示清除不了“access_log”文件
原因:已存在运行中的tomcat,“access_log”文件被占用
解决:在Console视图中点“X”,先停止当前运行的tomcat,再运行tomcat

3.部署redis集群时,节点少于50%就会down机了,整个集群不可用

问题大杂烩_第2张图片
image.png

4.maven项目发布报错:找不到依赖包
[ERROR] Failed to execute goal on project taotao-portal: Could not resolve dependencies for project com.taotao:taotao-portal:war:0.0.1-SNAPSHOT: Could not find artifact com.taotao:taotao-manager-pojo:jar:0.0.1-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
image.png

解决:把parent依赖包和所缺的依赖包重新install一下
问题大杂烩_第3张图片
image.png

5.maven项目发布报错:端口被占用
信息: Initializing ProtocolHandler ["http-bio-8081"]
十一月 27, 2017 2:58:15 下午 org.apache.coyote.AbstractProtocol init
严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8081"]
java.net.BindException: Address already in use: JVM_Bind :8081
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:407)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)


问题大杂烩_第4张图片
image.png
解决:更换端口或者把占用端口的进程杀掉再重新发布

你可能感兴趣的:(问题大杂烩)