当我运行command./config.sh
---试图在服务器上设置GitHub运行程序时,我得到了这个错误
An error occurred: Permission to read the directory contents is required for '/var/www/usr/data/actions-runner' and each directory up the hierarchy. Access to the path '/var/www' is denied.
folder /var/www/ is owned by root, and usr running /.configure command has proper rights on /usr/data/action-runner
在将"usr"
添加到sudo之后,我尝试运行上面的命令,然后它告诉我该命令不能作为sudo运行。所以这里没有胜利。我个人不想像sudo那样运行命令,所以我并没有试图找出这个错误。
但是,我有一个紧迫的问题,为什么这个配置脚本关心它是否有/var/www/
的读取权限
这种不会把加起来
您可以运行sudo chmod 0755 /var/www
,它为我修复了问题