LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1621|回复: 6

从源码安装的samba服务器,该如何启动服务?

[复制链接]
发表于 2006-5-11 21:18:00 | 显示全部楼层 |阅读模式
下的 samba-3.0.22源码包
按说明
root#  cd samba-3.0.20/source
root#  ./autogen.sh

To build the binaries, run the program ./configure in the source directory. This should automatically configure Samba for your operating system. If you have unusual needs, then you may wish to first run:

root# ./configure --help

This will help you to see what special options can be enabled. Now execute ./configure with any arguments it might need:

root# ./configure [... arguments ...]

Execute the following create the binaries:

root#  make

Once it is successfully compiled, you can execute the command shown here to install the binaries and manual pages:

root#  make install

成功安装...但是不知道启动服务........晕死
我试过以下方法:service smb start
               /etc/rc.d/init.d/smb start
                /usr/sbin/samba st

全都无法启动服务......我该怎么办?
发表于 2006-5-12 11:03:40 | 显示全部楼层
如你安装到/usr/local/samba下,则要到目录下执行来启动.或者把smb放到/etc/rc.d/init.d/smb下,就可以用service smb start启动了.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-12 12:18:04 | 显示全部楼层
Post by brian
如你安装到/usr/local/samba下,则要到目录下执行来启动.或者把smb放到/etc/rc.d/init.d/smb下,就可以用service smb start启动了.




我是安装在/usr/local/samba下了.到了目录该执行什么命令呀?service smb start 不行啊!
启动脚本也启动不了
#!/bin/sh
/usr/local/samba/sbin/smbd -D
/usr/local/samba/sbin/winbindd -B
/usr/local/samba/sbin/nmbd -D
到底该怎么启动啊~~!!!
回复 支持 反对

使用道具 举报

发表于 2007-3-16 09:25:11 | 显示全部楼层
我想问一下,源码安装完成后怎么才可以找到smb.conf这个配置文件来修改里面的内容啊?谢谢大家支持!
回复 支持 反对

使用道具 举报

发表于 2007-3-16 14:48:16 | 显示全部楼层
无论你是高手还是刚开始学编程的

现在去米鼠望注册会员

可以答题拿积分    米鼠积分是1积分等价于1RMB的

赶快行动吧
网址:www.mylinux.com.cn
回复 支持 反对

使用道具 举报

发表于 2007-3-16 15:53:10 | 显示全部楼层
/etc/rc.d/init.d/smb restart
回复 支持 反对

使用道具 举报

发表于 2007-3-16 15:54:23 | 显示全部楼层
Post by songzhenyi_81
我想问一下,源码安装完成后怎么才可以找到smb.conf这个配置文件来修改里面的内容啊?谢谢大家支持!

$locate smb.conf 找到该文件,再做修改
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表