用bbs用户执行这个,显示
[bbs@linux bbs]$ /usr/bin/wget -Y off -t 0 -O /var/www/html/mainpage.html
http://127.0.0.1/mainpage.php/var/www/html/mainpage.html: Permission denied
[bbs@linux bbs]$
看来是权限问题...?
用root用户执行成功了,mainpage.html正常了...-_-~
[root@linux root]# /usr/bin/wget -Y off -t 0 -O /var/www/html/mainpage.html
http://127.0.0.1/mainpage.php--23:47:01--
http://127.0.0.1/mainpage.php => `/var/www/html/mainpage.html'
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,009 [text/html]
100%[=======================================>] 13,009 907.44K/s ETA 00:00
23:47:02 (907.44 KB/s) - `/var/www/html/mainpage.html' saved [13009/13009]
【 在 zls0424 (黑无常 | 休养生息) 的大作中提到: 】
: 手动执行这句的输出是什么?
: /usr/bin/wget -Y off -t 0 -O /var/www/html/mainpage.html
http://127.0.0.1/mainpage.php --
FROM 221.192.210.*