1. Create a new folder workspace share under Windows, add a temporary file, set the password to file123, add the user to the user list of the shared folder, and select read and write permissions.
2. Create a new /workspace under centos to mount the shared folder
3. Execute the mount command under centos:
mount -t cifs -o username=file,password=file123 //192.168.1.102/workspace /workspace
4. Mount the folder on boot and edit /etc/fstab:
//192.168.1.102/workspace /workspace cifs username=file,password=file123 0 0
In this way, you can mount it, write code with a windows editor, and run it under centos.