linux开机启动smb服务修改/etc/rc.loacl文件(增加红色部分)rootlocalhost#cat/etc/rc.local#!/bin/sh# Thisscriptwillbeexecuted*after*alltheotherinitscripts.# Youcanputyourowninitializationstuffinhereifyoudont# wanttodothefullSysVstyleinitstuff.touch/var/lock/subsys/localservicesmbrestartrootlocalhost#补充:以下为转帖在linux下如何把smb等服务加入开机启动:方法一:vi/etc/rc.d/rc.local力口入/usr/local/samba/sbin/smbd-D/usr/local/samba/sbin/nmbd-D就可以了。方法二:chkconfigsmbon方法三:ntsysv打开图形界面,找到samba选行确认即可