三linux系统管理 (2012.04.07)
Tftp服务器:
1netstat –a |grep tftp :查看tftp是否安装启动,如果有“udp 0 0*: tftp*:*说明已安装并启动。
2vi /ect/xinetd.d/tftp :tftp的配置
配置如下:
servicetftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
3/etc/init.d/xinetd start :启动tftp服务器,当tftp安装并且已经配置好了,就可以启动了。
四NFS服务器(linux与linux共享)
1rpm –q nfs-utils : 查看是否已经安装nfs服务器,如果显示nfs-utils-1.0.9-50.el5 说明已经安装。
2vi /etc/exports : 配置nfs服务器如下:
/myfile 192.168.246.*(rw,sync,
no_root_squash)
a /myfile 设置共享的路径
b 192.168.246.* 设置允许访问的ip
c rw 可读写
d sync 资料先存在缓存,不存硬盘
e no_root_squash 表示客户端root可对该目录具有写权限
五配置Samba
配置linux与windows共享samba
1打开 vi/ect/samba/smb.conf
把前六行复制,再粘贴 改动上面的为
[root]
comment = Root Directories
browseable = yes
writable = yes
path = /
valid users = lichuanwu
最后配置为:
[root]
comment = Root Directories
browseable = yes
writable = yes
path = /
valid users = lichuanwu
[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
2设置smb密码
smbpasswd-a lichuanwu
输入两边密码
3重新启动smb
/ect/init.d/smbrestart
4 setup查看设置