Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个命令我可以在命令行中正确运行。
>sshpass -p 'xxxx' rsync -rve ssh /var/www/html/my_profect/image server2@192.168.xxx.xxx:/var/www/html/project2
但我想从 php 页面使用exec(). 但是当我从 php 页面调用时,rsync 没有移动任何文件,也没有给出错误。
exec()
passthru()
var_dump(passthru($command));