添加脚本:
[root@NAT ftp]# vim /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/usr/local/sbin/win.sh
#**************end******************************
touch /usr/local/sbin/win.sh
chmod -R 777 /usr/local/sbin/win.sh
vim /usr/local/sbin/win.sh
#!/bin/sh
#win-ftp
mount -t cifs -o username=baiyuan,password=baiyuan //192.168.0.7/data/baiyuan /data/www/baiyuan