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

前端 未结 3 1020
忘了有多久
忘了有多久 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:13

    Alternatively you can use bash:

    bash startup.sh
    

    Then you don't need execution permission.

    In MacOS Catalina, Apple has replaced bash with zsh as default shell. This can mean, that they intend to remove bash in the future, so this might not be an option later, but with Catalina it still works.

提交回复
热议问题