配置tomcat Idea 出现 error=13, Permission denied问题解决方案

2021/5/15
3:11 下午    Download pre-built shared indexes
                Pre-built JDK shared indexes reduce the indexing time and CPU load
                Always download
                Download once
                Don't show again
                Configure...

3:11 下午    IDE Eval Reset
                It has been a long time since the last reset!
                Would you like to reset it again?
                Eval Reset

3:58 下午    Build completed successfully in 4 s 405 ms

3:58 下午    All files are up-to-date

4:11 下午    Build completed successfully in 1 s 113 ms

4:11 下午    Error running 'tomcat9': Address localhost:8080 is already in use

解决方案:在Run/Debug Configurations 里修改端口号HTTP Port:8081

 

4:15 下午    All files are up-to-date

4:15 下午    Error running 'tomcat9': Cannot run program "/Users/jabraknight/Downloads/apache-tomcat-9.0.45/bin/catalina.sh" (in directory "/Users/jabraknight/Downloads/apache-tomcat-9.0.45/bin"): error=13, Permission denied

解决方案:进入到tomcat的bin目录下,执行命令

chmod a+x catalina.sh


 

你可能感兴趣的:(java,tomcat,idea)