您的位置:首页 > 编程语言 > PHP开发

ftp,nfs,samba基本配置

2012-07-31 23:06 309 查看
VSFTP:

# vim /etc/vsftpd/vsftpd.conf

anon_upload_enalble=YES

anon_mkdir_write_enable=YES

默认目录 /var/ftp/pub

# chmod -R ... /var/ftp/pub

# service vsftpd restart

NFS:

# vim/etc/exports /var/nfs *.*(rw,sync)

# chmod -R ... /var/nfs

# mount -t nfs IP:/var/nfs /mnt/nfs

# service nfs restart

SAMBA:

关闭防火墙

关闭SELinux

# vim /etc/selinux/config SELINUX=disabled

# setenforce 0

# vim /etc/samba/smb.conf load printers = no

# service smb restart

# smbpasswd -a user ; add a user

# smbpasswd -x user ; delete a user

TFTP

# vim /etc/xinetd.d/tftp

service tftp

{

disable
= no

socket_type
= dgram

protocol
= udp

wait = yes

user = root

server
= /usr/sbin/in.tftpd

server_args
= -s /var/ftp

per_source
= 11

cps = 100 2

flags = IPv4

}

# ls /etc/rc.d/init.d/xinetd 确认脚本文件存在

默认目录 /var/lib/tftpboot

# service xinetd restart

BOOTP

#vi /etc/xinetd.d/bootp

service bootps

{

disable
= no

socket_type
=dgram

protocol
=udp

wait =yes

user =root

server
=/usr/sbin/bootpd

}

#vi /etc/bootptab

s3c6410:\

ht=1:\

ha=0x089090909090:\

ip=192.168.0.50:\

sm=255.255.255.0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: