学习笔记----linux下编译samba

linux下编译samba
  一、samba的启动命令:
       #cd /usr/local/samba/sbin
       #smbd
    关闭samba可以杀死smbd进程
  二、samba 的配置文件和rpm的存放路径一样
       #vi /etc/samba/smb.conf
  三、samba的内部命令
       #cd /usr/local/samba/bin
       #smbpasswd u1
  ...................
   四、编译samba的一些参数:

 ./configure  --prefix=/usr/local/samba
         --build=i686-linux
         --host=mipsel-linux
         --target=mipsel-linux \
         --includedir=/Cross/target/local/mipsel-linux/include \
         --oldincludedir=/Cross/target/local/mipsel-linux/include \
         --disable-largefile    \
         --enable-swat=no \
         --enable-cups=no \
         --enable-iprint=no \
         --enable-pie=no \
         --enable-fam=no \
         --enable-static=yes \
         --enable-shared-libs=no \
         --enable-dnssd=no \
         --with-ldap=no \
         --with-ads=no \
         --with-cifsmount=no \
         --with-utmp=no \
         --with-libtalloc=no \
         --with-libtdb=no \
         --with-libnetapi=no \
         --with-libaddns=no \
         --with-libsmbclient=no \
         --with-libsmbsharemodes=no \
         --with-acl-support=no \
         --with-sendfile-support=no \
         --with-winbind=no \
         --with-static-modules=nmbd,smbd,smbclient,smbpasswd \
         --bindir=$MQARMDIR/bin \
         --sbindir=$MQARMDIR/bin \
         --localstatedir=$MQUSERDIR/samba/var \
         --libdir=$MQARMDIR/lib \
         --with-privatedir=$MQUSERDIR/samba/private \
         --with-rootsbindir=$MQARMDIR/bin \
         --with-lockdir=$MQUSERDIR/samba/var/locks \
         --with-configdir=$MQUSERDIR/samba \
         --with-logfilebase=$MQUSERDIR/samba/var \
         --with-piddir=$MQUSERDIR/samba/var \
         --cache-file=mipsel-linux.cache

你可能感兴趣的:(linux,职场,samba,休闲,linux下编译samba)