CentOS 5.8 x64 原始碼安裝 samba-3.6.9

丶小炒肉發表於2016-05-31
環境 CentOS 5.8 X64 
 
 
wget http://www.samba.org/samba/ftp/stable/samba-3.6.9.tar.gz
 
tar zxvf samba-3.6.9.tar.gz
 
cd samba-3.6.9
 
cd source3
 
sh autogen.sh
 
./configure --prefix=/opt/local/samba
 
make && make install
 
==============================================================
All MO files for Samba are installed. You can use "make uninstall"
or "make uninstallmo" to remove them.
==============================================================
 
安裝完成...
 
將smb.conf檔案拷貝到/opt/local/samba/lib/
 
cd ..
 
cp examples/smb.conf.default /opt/local/samba/lib/smb.conf
 
cd /opt/local/samba/bin
 
./testparm
 
檢視載入服務檔案是否正常
 
ln -s /opt/local/samba/lib/libtalloc.so.2 /lib64/libtalloc.so.2
ln -s /opt/local/samba/lib/libtdb.so.1 /lib64/libtdb.so.1
 
Loaded services file OK.
 
 
修改smb.conf 檔案..
 
 
 
 
 
新增smb 使用者.
 
./smbpasswd -a user
 
 
啟動samba 服務
 
cd /opt/local/samba/sbin/
 
./smbd start
 
./nmbd start

相關文章