1.idea中Tomcat啓動錯誤。java
Error running 'Unnamed': Cannot run program "/Users/han/Downloads/apache-tomcat-7.0.90 2/bin/catalina.sh" (in directory "/Users/han/Downloads/apache-tomcat-7.0.90 2/bin"): error=13, Permission denied
分析:權限不足。node
*解決:命令行進入tomcat的bin根目錄,執行chmod 777 .sh問題解決**apache
2.Error running 'Unnamed': SSL HTTP Connector node not found: set up one in the server.xmlvim
分析:tomcat的server.xml文件中沒有配置https/SSL的鏈接器.tomcat
解決:Idea中tomcat配置中關閉https端口(配置tomcat的HTTP端口下面的HTTPs的端口去掉就能夠)。ide
3.Error running 'Unnamed': Address localhost:1099 is already in use
分析:端口正在使用。idea
思路和方法:
(1)找到1099端口,殺死進程,重啓tomcat,問題並未解決。
(2)未發現1099端口正在使用,使用其餘端口,一樣報錯端口正在使用。
(3)殺死全部java進程,重啓tomcat,問題並未解決。命令行
解決方法:
(1)vim /etc/hosts
(2)添加 ‘::1 localhost’到hosts文件中。若文件中有該配置文件,刪除其餘與localhost不相關的地址映射。(3)重啓idea,問題解決。server