RedHat Enterprise Linux 5 安装TFTP服务器
2015-06-09 20:51
465 查看
利用以下命令就可以看到TFTP服务器已启动,则不用安装
[root@localhost Server]# netstat -a | grep tftp
udp 0 0 *:tftp *:*
若没有安装,在Redhat Enterprise Linux 5的安装光盘中有RPM安装包,挂在光盘后进入到文件夹,找到相应的安装包。
[root@localhost user]# cd /media/
[root@localhost media]# ls
RHEL_5.1 i386 DVD
[root@localhost media]# cd RHEL_5.1\ i386\ DVD/(进入光盘文件命令必须这个格式,注意R、i、D前有空格)
[root@localhost RHEL_5.1 i386 DVD]# ls
[root@localhost RHEL_5.1 i386 DVD]# cd Server/
[root@localhost Server]# ls tftp*
tftp-0.42-3.1.i386.rpm tftp-server-0.42-3.1.i386.rpm
执行安装命令
[root@localhost Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
xinetd is needed by tftp-server-0.42-3.1.i386
提示需要安装xinetd,找到安装包并安装
[root@localhost Server]# ls xinet*
xinetd-2.3.14-10.el5.i386.rpm
[root@localhost Server]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm
warning: xinetd-2.3.14-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:xinetd ########################################### [100%]
再执行安装TFTP命令
[root@localhost Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:tftp-server ########################################### [100%]
建立tftp的主工作目录
[root@localhost Server]# mkdir /tftpboot
修改配置文件
[root@localhost Server]# vi /etc/xinetd.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
}
重启服务
[root@localhost Server]# /etc/init.d/xinetd restart
Stopping xinetd: [FAILED]
Starting xinetd: [
OK ]
查看是否启动
[root@localhost Server]# netstat -a |grep tftp
udp 0 0 *:tftp *:*
[root@localhost Server]# netstat -a | grep tftp
udp 0 0 *:tftp *:*
若没有安装,在Redhat Enterprise Linux 5的安装光盘中有RPM安装包,挂在光盘后进入到文件夹,找到相应的安装包。
[root@localhost user]# cd /media/
[root@localhost media]# ls
RHEL_5.1 i386 DVD
[root@localhost media]# cd RHEL_5.1\ i386\ DVD/(进入光盘文件命令必须这个格式,注意R、i、D前有空格)
[root@localhost RHEL_5.1 i386 DVD]# ls
[root@localhost RHEL_5.1 i386 DVD]# cd Server/
[root@localhost Server]# ls tftp*
tftp-0.42-3.1.i386.rpm tftp-server-0.42-3.1.i386.rpm
执行安装命令
[root@localhost Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
xinetd is needed by tftp-server-0.42-3.1.i386
提示需要安装xinetd,找到安装包并安装
[root@localhost Server]# ls xinet*
xinetd-2.3.14-10.el5.i386.rpm
[root@localhost Server]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm
warning: xinetd-2.3.14-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:xinetd ########################################### [100%]
再执行安装TFTP命令
[root@localhost Server]# rpm -ivh tftp-server-0.42-3.1.i386.rpm
warning: tftp-server-0.42-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:tftp-server ########################################### [100%]
建立tftp的主工作目录
[root@localhost Server]# mkdir /tftpboot
修改配置文件
[root@localhost Server]# vi /etc/xinetd.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
}
重启服务
[root@localhost Server]# /etc/init.d/xinetd restart
Stopping xinetd: [FAILED]
Starting xinetd: [
OK ]
查看是否启动
[root@localhost Server]# netstat -a |grep tftp
udp 0 0 *:tftp *:*
相关文章推荐
- all about the linux swap space
- Centos更新源
- Plexim Plecs.Standalone.v3.6.7 for Win32_64 .Linux32_64电力电子电路系统模拟软件
- Linux进程间通信--使用信号量
- Linux grep工具应用实例 精简配置文件 从系统管理命令输出中查找
- Linux下的内核测试工具——perf使用简介
- 关于Linux Kernel select epoll
- 编译安装linux内核模块
- linux命令总结(三)
- linux命令总结(二)
- 安装rlwrap for linux
- Linux 内核调试之 printk
- [Linux] git send-email的使用
- Linux 性能监控、测试、优化工具
- linux下date命令及系统时间设置
- Linux-EXT2文件系统
- 【Linux】 MySQL
- Linux学习记录--匿名沟通渠道
- 在Ubuntu Linux下怎样安装QQ
- 一张图记住常用 Linux 系统性能诊断工具