My Baidu website said this works$ sudo chmod -R 777 myResources But it didn’t work after trying it. Is there any way to solve it?
$ sudo chmod -R 777 myResources
走同样的路,发现不同的人生
I want to authorize the script and then execute it
chmod 777 ./redis.sh
Also when I saw you executing chmod时, 报错command not found! 这可能跟你执行sudo有关, 你可能没有配置好, 导致sudo时没有携带环境变量, 找不到命令, 你可以用绝对路径去执行, 或者不用sudo, 直接 chmod .....(省略)
chmod
command not found
sudo
chmod .....(省略)
sudo sh mysql.sh
One suggestion, if you use sh script this way, you may get into trouble. The default shell of ubuntu is dash, so an error will be reported~
I also tried it like this. Why is there no response? chmod 777 ./redis.sh
I want to authorize the script and then execute it
Also when I saw you executing
chmod
时, 报错command not found
! 这可能跟你执行sudo
有关, 你可能没有配置好, 导致sudo时没有携带环境变量, 找不到命令, 你可以用绝对路径去执行, 或者不用sudo, 直接chmod .....(省略)
One suggestion, if you use sh script this way, you may get into trouble. The default shell of ubuntu is dash, so an error will be reported~
I also tried it like this. Why is there no response?
chmod 777 ./redis.sh