执行start.sh提示权限错误
我的操作系统为ubuntu20.04,用的是openjdk8,可以正常运行,但是执行start.sh时,提示权限错误信息:chmod: changing permissions of '/bin/': Operation not permittedchmod: changing permissions of '/bin/arpaname': Operation not permittedchmod: changing permissions of '/bin/sha384sum': Operation not permitted.......
正常来说应该是文件的权限问题
但是不管我是设置为755,还是777都不行,难道必须要在root用户权限下面运行吗?
我发现我禁用
chmod +x -R "$JAVA_HOME/bin/"
这一行,就不会有问题了。
我建议你使用centos7.5系统 #readonly JAVA_HOME=""
chmod +x -R "$JAVA_HOME/bin/"
这两行是不是有点bug,因为上面的java_home被禁用了,没有内容,下面这个chmod就直接执行针对文件系统根目录中的bin更更改执行权限了,所以会提示错误。
这是centos与ubuntu的区别吗? 直接在 文件夹那里 设置权限
页:
[1]