1。在阿里租用空间,安装centos
2.安装pptpd
vi /etc/sysctl.conf
sysctl -p
systemctl start pptpd
modprobe ppp-compress-18 && echo yes
cat / dev / net / tun
yum install -y ppp pptpd
ifconfig
vi /etc/pptpd.conf
vi /etc/ppp/options.pptpd
vi / etc / ppp / chap-secrets
3.安装samba
4. windows设置共享文件夹
5. windows设置VPN连接到VPS,获得IP 192.168.88.101
安装mount软件
yum install cifs-utils
6.把windows的共享文件夹mount到centos的/mun/shared1
mount.cifs //192.168.88.101/MarkShared / mnt / shared1 -o username = username,password = password
mount -t cifs -o username=Mark,password=xxxx,gid=1001,uid=1001 //192.168.88.101/MarkShared /mnt/MarkShared
mount.cifs -o username=Mark,password=xxxx,gid=1001,uid=1001 //192.168.88.101/MarkShared /mnt/MarkShared