ubuntu12.04下tftp配置
来源:互联网 发布:5eplay对战平台知乎 编辑:程序博客网 时间:2024/05/21 09:04
安装tftp-hpa tftpd-hpa xinetd
sudo apt-get install tftp-hpa tftpd-hpa xinetd
在根目录下创建文件夹/tftpboot/root
修改目录权限chmod -R 777 /tftpboot/root
修改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 /tftpboot/root
source = 11
cps = 100 2
flags =IPv4
}
修改inetd.conf文件
# vim /etc/inetd.conf
tftp dgram udp wait nobody /usr/sbin/tcpd
/usr/sbin/in.tftpd /tftpboot/root
其中/tftpboot/root为 tftp共享目录
修改tftpd-hpa文件
# vim /etc/default/tftpd-hpa
#RUN_DAEMON="no"
#OPTIONS="-s /tftpboot/root -c -p -U tftpd"
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot/root"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -c -s"
在/tftpboot/root下创建测试文件xxx
#cd /tftpboot/root
#touch xxx
#chmod 777 xxx
测试一下 tftp服务:
#cd /
#tftp 127.0.0.1
tftp>get xxx
tftp>q
#ls
查看当前目录,发现xxx文件已在当前目录
如果上述设置还不行的话,那么就要把selinux禁用掉:
#vim /etc/selinux/config //如果没有selinux/config这个文件,则创建。
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
把上面的SELINUX=enforcing 改为:SELINUX=disable 禁用SeLinux
然后reboot重启PC
重启后再进行tftp测试。
- ubuntu12.04下tftp配置
- ubuntu12.04下tftp安装、配置、测试
- ubuntu12.04 TFTP配置
- ubuntu12.04配置TFTP
- ubuntu12.04 配置tftp服务
- 嵌入式 ubuntu12.04下tftp安装、配置、测试
- ubuntu12.04下samba、tftp、nfs的配置
- Ubuntu12.4下配置tftp服务
- ubuntu12.04 tftp 服务器配置使用
- ubuntu12.04安装tftp、配置tftp服务错误
- ubuntu12.04安装tftp、配置tftp服务错误的解决方法
- ubuntu12.04安装tftp、配置tftp服务 错误解决方案
- ubuntu12.04安装tftp、配置tftp服务错误的解决方法
- Ubuntu12.04 下架设tftp服务器
- ubuntu12.04下tftp安装、配置、测试 (本机及开发板测试)
- ubuntu12.04 安装tftp
- ubuntu12.4下tftp设置
- Ubuntu10.04下tftp配置
- 一些想法
- 如何计算汇兑损益
- Linux动态库(.so)搜索路径(目录)设置方法
- 博客开通
- Android 源码编译下一些问题总结(持续更新)
- ubuntu12.04下tftp配置
- iOS 读取 以及 高亮 PDF
- 如何漂亮解決並行下載工作?
- Ext自定义消息弹框 -- 闭包的应用
- iphone gamecenter GKErrorDomain code =17
- 英语水平:第七级
- android JNI 的简单示例
- android中的布局(三)ToggleButton的运用 实现布局的动态改变
- Sing Something:K歌达人的Draw Something