凯旋 发表于 2021-6-9 11:04:44

执行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用户权限下面运行吗?

凯旋 发表于 2021-6-9 11:11:33

我发现我禁用
chmod +x -R "$JAVA_HOME/bin/"
这一行,就不会有问题了。

jishenghua 发表于 2021-6-9 22:04:49

我建议你使用centos7.5系统

凯旋 发表于 2021-6-18 00:14:17

#readonly JAVA_HOME=""
chmod +x -R "$JAVA_HOME/bin/"

这两行是不是有点bug,因为上面的java_home被禁用了,没有内容,下面这个chmod就直接执行针对文件系统根目录中的bin更更改执行权限了,所以会提示错误。
这是centos与ubuntu的区别吗?

我的我 发表于 2021-12-24 10:06:12

直接在 文件夹那里 设置权限
页: [1]
查看完整版本: 执行start.sh提示权限错误