Ubuntu 12.04 安装TFTP server
2015-04-01 16:31
423 查看
1. sudo apt-get install tftpd tftp openbsd-inetd
2. sudo vi /etc/inetd.conf
#:BOOT: TFTP service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp (/srv/tftp 为默认tftp目录)
#修改如下文件
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftproot
3.sudo mkdir /tftproot
4.sudo chmod 777 /tftproot
5.sudo /etc/init.d/openbsd-inetd restart
6.查看69端口是否有打开 :netstat -an | more | grep udp
udp 0 0 0.0.0.0:69 0.0.0.0:*
7.本机测试:
a. 在/tftproot 下新建文件1.txt
b. 在其他目录下测试:
tftp 127.0.0.1
tftp> get 1.txt
Received 12 bytes in 0.0 seconds
tftp> quit
(目的是target 做client去连接pc的server)
2. sudo vi /etc/inetd.conf
#:BOOT: TFTP service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp (/srv/tftp 为默认tftp目录)
#修改如下文件
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftproot
3.sudo mkdir /tftproot
4.sudo chmod 777 /tftproot
5.sudo /etc/init.d/openbsd-inetd restart
6.查看69端口是否有打开 :netstat -an | more | grep udp
udp 0 0 0.0.0.0:69 0.0.0.0:*
7.本机测试:
a. 在/tftproot 下新建文件1.txt
b. 在其他目录下测试:
tftp 127.0.0.1
tftp> get 1.txt
Received 12 bytes in 0.0 seconds
tftp> quit
(目的是target 做client去连接pc的server)
相关文章推荐
- Ubuntu 12.04 安装TFTP server
- Ubuntu 12.04 安装TFTP server
- Ubuntu 12.04 安装TFTP server
- ubuntu安装tftp server
- ubuntu 12.04 server 硬盘安装实现windows 双系统
- 如何删除在Ubuntu server 12.04安装中设置的http代理 (解决apt-get update 出错问题)
- 安装ubuntu Server 12.04 64位系统小记
- Ubuntu 12.04 Server OpenStack Havana多节点(OVS+GRE)安装
- Ubuntu Server 12.04 安装JRE
- 在Ubuntu Server 12.04 x64下安装Graphite
- 制作Ubuntu server 12.04及新版系统安装U盘的正确方法
- ubuntu 12.04 server + OPENACS(TR069)安装配置日记
- Ubuntu Server 12.04 安装 Tomcat 7.0.40
- Ubuntu Server 12.04 LTS 安装 AR8161 驱动
- U盘安装Ubuntu 12.04 Server版提示“Faild to copy file from CD-ROM”的解决办法
- 安装Redmine 2.3.0(Ubuntu 12.04 Server)
- 如何在 Ubuntu 12.04 Server 中安装图形用户界面
- ubuntu server 12.04上的skyeye1.3.5安装和使用(打造最精确的安装步骤和注意事项)
- ubuntu 12.04 安装tftp服务器
- 使用优盘安装Ubuntu 12.04 Server