码迷,mamicode.com
首页 > 系统相关 > 详细

linux开机启动smb服务

时间:2016-04-13 23:42:35      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:

修改/etc/rc.local文件(增加红色部分)

[root@localhost ~]# cat /etc/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
service smb restart

linux开机启动smb服务

标签:

原文地址:http://www.cnblogs.com/719907411hl/p/5389109.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!