CentOS6.5 搭建SAMBA共享+迅雷Xware远程下载服务器

    一、安装SAMBA

    yum install samba samba-client samba-common -y

    二、修改配置文件

    cd /etc/samba/
    mv smb.conf smb.bak.conf
    nano /etc/samba/smb.conf

    [global]
    workgroup = WORKGROUP
    server string = RainMan Samba Server %v
    netbios name = RainManSamba
    security = user
    map to guest = Bad User
    passdb backend = tdbsam

    [RAINMAN]
    comment = project development directory
    path = /home/thunder/TDDOWNLOAD
    valid users = rmsam
    write list = rmsam
    printable = no
    create mask = 0755
    directory mask = 0755

    三、建立共享目录配置权限

    mkdir /home/thunder
    mkdir /home/thunder/TDDOWNLOAD
    groupadd rmsam
    useradd rmsam -g rmsam -s /sbin/nologin
    smbpasswd -a rmsam

    chown -R rmsam:rmsam /home/thunder/
    chmod -R 755 /home/thunder/

    四、设置防火墙

    iptables -I INPUT -p tcp --dport 139 -j ACCEPT
    iptables -I INPUT -p tcp --dport 445 -j ACCEPT
    service iptables save
    service iptables restart

    nano /etc/selinux/config
    将SELINUX=enforcing改为SELINUX=disabled

    setenforce 0

    service smb start
    chkconfig smb on
    service smb restart

    五、安装迅雷Xware 需要32位CENTOS

    mkdir /home/thunderinstall
    cd /home/thunderinstall
    wget http://phpwebhome.com/download/Xware1.0.31_x86_32_CENTOS.zip
    unzip /home/thunderinstall/Xware1.0.31_x86_32_CENTOS.zip -d /home/thunderinstall
    chmod -R 777 /home/thunderinstall
    ./portal
    获取绑定码
    THE ACTIVE CODE IS: pmwjqh
    http://yuancheng.xunlei.com/ 登陆添加设备绑定

    开机自动挂载硬盘
    mkdir /mnt/thunder
    nano /etc/fstab
    /home/thunder /mnt/thunder none bind 0 0

    设置随机启动
    nano /etc/rc.d/rc.local
    /home/thunderinstall/portal #添加随机启动

    转载请注明:RAIN MAN » CentOS6.5 搭建SAMBA共享+迅雷Xware远程下载服务器

    喜欢 2

还没有人抢沙发呢~