1.tftp服务器在安装linux时通常可供选择是否安装tftp服务器
启动后可通过在控制终端输入netstat -a|grep tftp查看是否已经安装若已安装则为如下打印信息:
[root@localhost /]# netstat -a|grep tftp
udp 0 0 *:tftp *:*
若没有安装则可使用
rpm –ivh tftp-server-0.42-3.1.i386.rpm
进行安装然后建立主要工作目录mkdir /tftpboot
接下来配置tftp服务器
vim /etc/init.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
注意修改server_args = -s /tftpboot为你tftp工作目录。
接下来便是重启tftp 服务器了/etc/init.d/xinetd restart打印出如下信息
[root@localhost /]# /etc/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
表示重启成功接下来便可查看是否已经安装成功
[root@localhost /]# netstat -a|grep tftp
udp 0 0 *:tftp *:*
2.nfs服务器
首先查看nfs服务器是否被安装(这里为red-had5)rpm –q nfs-utils若打印出如下信息则表示已经被安装
[root@localhost ~]# rpm -q nfs-utils
nfs-utils-1.0.9-24.el5
若没有安装nfs服务器则先下载相应的nfs服务器包百度一个即可
然后rpm –ivh nfs- utils-1.0.9-24.el5.i386.rpm这里使用的nfs版本为utils-1.0.9-24.el5故不同版本安装不同,然后进入nfs配置