Ubuntu 中安装 IDEA 报错:Warning the selected directory is not a valid tomcat home
来源:互联网 发布:历史数据库 编辑:程序博客网 时间:2024/05/09 09:19
在Ubuntu上安装IDEA很方便,只需要将IDEA官方的tar.gz包下载到本地,我下载的如下图:
然后用命令
tar -xvf ideaIU-2017.2.6.tar.gz将文件解压好,cd 到其bin目录,然后运行
./idea.sh接着选择默认安装就可以了。
安装完成后,我在配置Tomcat的时候报错:Warning the selected directory is not a valid tomcat home
查看Tomcat目录的文件权限:
/usr/local/tomcat$ ls -l总用量 4drwxr-xr-x 9 root root 4096 11月 15 12:14 apache-tomcat-8.5.16只有root用户才有写入权限,其他用户只能读跟执行,这样肯定不行啦。
使用命令,递归改变该文件夹下所有文件的权限:
sudo chmod 777 -R apache-tomcat-8.5.16/然后 ls -l 查看该文件夹下的文件:
drwxrwxrwx 2 root root 4096 11月 15 12:14 bindrwxrwxrwx 2 root root 4096 6月 22 01:02 confdrwxrwxrwx 2 root root 4096 11月 15 12:14 lib-rwxrwxrwx 1 root root 57092 6月 22 01:02 LICENSEdrwxrwxrwx 2 root root 4096 6月 22 01:01 logs-rwxrwxrwx 1 root root 1723 6月 22 01:02 NOTICE-rwxrwxrwx 1 root root 7064 6月 22 01:02 RELEASE-NOTES-rwxrwxrwx 1 root root 15946 6月 22 01:02 RUNNING.txtdrwxrwxrwx 2 root root 4096 11月 15 12:14 tempdrwxrwxrwx 7 root root 4096 6月 22 01:01 webappsdrwxrwxrwx 2 root root 4096 6月 22 01:01 work
然后再回去IDEA配置Tomcat,可以了
阅读全文
0 0
- Ubuntu 中安装 IDEA 报错:Warning the selected directory is not a valid tomcat home
- Warning the selected directory is not a valid tomcat home
- Android Studio报错:the selected directory is not a valid home for unknow sdk
- IntelliJ IDEA The selected directory is not a valid home for JDK 错误解决办法
- IntelliJ IDEA导入JDK出现The selected directory is not a valid home for JDK问题的解决方法
- eclipse安装tomcat报错:The Tomcat installation directory is not valid. It is missing expected file or fol
- The Tomcat installation directory is not valid. It is missing...
- 在eclipse中安装tomcat服务器,报错" Cannot create a server using the selected type ".
- Ubuntu系统安装vmwaretools时the path "" is not a valid path to the 3.13
- 在eclipse中安装tomcat8.5时,报错:The Apache Tomcat installation at this directory is version 8.5.6. A Tomca
- intellij idea svn报错:xxx is not a working copy directory
- Warning: readdir(): supplied argument is not a valid Directory resource in /yjdata/www/www/admin/tem
- Tomcat报错:Document base …does not exist or is not a readable directory
- Tomcat 启动报错:host-manager does not exist or is not a readable directory
- tomcat启动报错:does not exist or is not a readable directory
- tomcat 7中EL表达式报"is not a valid Java identifier"...
- jenkins中配置maven一直报is not a directory on the Jenkins master错误
- eclipse(优化九) eclipse中tomcat报错:Cannot create a server using the selected type
- cherry-pick 多个commit
- 指针与字符串
- 链表翻转
- 11.15第十一课
- 配置Spring连接mysql数据库
- Ubuntu 中安装 IDEA 报错:Warning the selected directory is not a valid tomcat home
- 如何下载行政区划边界?
- 如何利用openUrl打开另外一个app
- 移动端UI界面设计:APP字体排版设计的七个原则
- const T、const T*、T *const、const T&、const T*& 的区别
- python使用sqlaclchemy关于中文报错
- c# 无损高质量压缩图片代码
- 表格固定头部,底部,左侧
- Java反射:通过父类对象调用子类方法