在 Linux 上下载 Drupal 时出现权限被拒绝的问题

在 Linux 上下载 Drupal 时出现权限被拒绝的问题

当我尝试下载 Drupal 时,权限被拒绝。我该如何绕过这个问题?

 /var/www$ wget http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz

其结果是:

    --2012-02-08 21:20:17--  http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz
Resolving ftp.drupal.org... 64.50.233.100, 64.50.236.52
Connecting to ftp.drupal.org|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2728271 (2.6M) [application/x-gzip]
drupal-7.0.tar.gz: Permission denied

Cannot write to `drupal-7.0.tar.gz' (Permission denied).
eyedea@eyedea-ER912AA-ABA-SR1810NX-NA620:/var/www$ ^C
eyedea@eyedea-ER912AA-ABA-SR1810NX-NA620:/var/www$ wget http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz
--2012-02-08 21:46:34--  http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz
Resolving ftp.drupal.org... 64.50.236.52, 64.50.233.100
Connecting to ftp.drupal.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2728271 (2.6M) [application/x-gzip]
drupal-7.0.tar.gz: Permission denied

Cannot write to `drupal-7.0.tar.gz' (Permission denied).

答案1

问题可能是你没有权限或磁盘已满。尝试 $ sudo wgethttp://ftp.drupal.org/files/projects/drupal-7.0.tar.gz

如果不起作用,则执行 $ df -h

你的 / 文件系统不应该满

相关内容