yum install -y http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

yum install -y curlftpfs

mkdir -R /mnt/ftp

chmod 777 /mnt/ftp

echo "curlftpfs -o rw,allow_other,uid=0,gid=0,umask=001 -o nonempty ftp://user:password@xx.xx.xx.xx /home/nas/ftp">>/mnt/a.sh

chmod 777 /etc/rc.local

echo "/bin/bash /mnt/a.sh">>/etc/rc.local

/bin/bash /mnt/a.sh

注意:一定不能写入fstab,否则会导致系统无法正常启动

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-10-20
  • 2021-08-14
  • 2021-09-09
  • 2022-12-23
  • 2021-11-09
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2022-01-16
  • 2022-01-07
  • 2021-05-01
  • 2022-12-23
相关资源
相似解决方案