问题
I have problem setting up my AWS S3 bucket, the server already running on both two server Linux and Windows. The first the that I do to test if the transferring files is correct. I used the Windows to Windows transfer. the function of my codes is working, then second test Linux to Windows. Right now the transferring is not working. I don't know why its not working, if there is configuration need to do in Linux.
I will share to youthe sample code that I made on laravel.
exec('aws s3 cp s3://compexp/11-11-2019/'01150exp.zip' \\\\'xxx.xxx.xx'/c/kitpos/update');
When I tried to my Linux AWS terminal it shows look like this:
回答1:
You can Copy files only to local storage, so you need to mount external Windows storage, as a folder to your Linux-filesystem. And only after that copy file.
You can read how to mount Windows folder to Linux here - https://www.poftut.com/how-to-mount-nfs-share-in-linux-and-windows/
But I think this is a bad practice. Why can't you pull files directly from Windows?
来源:https://stackoverflow.com/questions/58832937/different-os-server-transferring-files-is-not-working-on-aws-s3-bucket-it-works