Terminal error: zsh: permission denied: ./startup.sh

前端 未结 3 1018
忘了有多久
忘了有多久 2020-12-17 07:45

I am running a command ./startup.sh nginx:start and I am getting this error message zsh: permission denied: ./startup.sh why could this be happenin

3条回答
  •  醉话见心
    2020-12-17 08:06

    Be sure to give it the execution permission.

    cd ~/the/script/folder
    
    chmod +x ./startup.sh
    

    This will give exec permission to user, group and other, so beware of possible security issues. To restrict permission to a single access class, you can use:

    chmod u+x ./startup.sh
    

    This will grant exec permission only to user

    For reference

提交回复
热议问题