Fedora之tftp服务器的安装与使用
来源:互联网 发布:通用电气公司人事知乎 编辑:程序博客网 时间:2024/05/21 09:10
1.下载tftp服务器、客户端tftp和守护进程xinetd三个包
dnf install xinetd tftp tftp-server
2.配置vi /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 /opt/tftpboot -c
per_source = 11
cps = 100 2
flags = IPv4
}
3. 在opt目录下创建tftpboot目录
cd /opt
mkdir tftpboot
4.将tftpboot权限改到最大化。
chmod 777 /opt/tftpboot
5.永久关闭SELinux
6. systemctl disable firewalld.service
永久关闭防火墙。
7.systemctl restart xinetd
重启xinetd,相当于是打开tftp服务器。为了保险再执行一句systemctl enable xinetd。
8.本地测试tftp
$tftp 127.0.0.1
tftp>put file //将当前目录的file上传到/opt/tftpboot下
tftp>get file //从/opt/tftpboot目录下载file文件到当前目录
也可直接使用以下命令
tftp_client上传文件到服务器:$tftp -p -r file ip
tftp_client从服务器下载文件:$tftp -g ip -r file
dnf install xinetd tftp tftp-server
2.配置vi /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 /opt/tftpboot -c
per_source = 11
cps = 100 2
flags = IPv4
}
3. 在opt目录下创建tftpboot目录
cd /opt
mkdir tftpboot
4.将tftpboot权限改到最大化。
chmod 777 /opt/tftpboot
5.永久关闭SELinux
编辑/etc/selinux/config,找到SELINUX 行修改成为:SELINUX=disabled:
6. systemctl disable firewalld.service
永久关闭防火墙。
7.systemctl restart xinetd
重启xinetd,相当于是打开tftp服务器。为了保险再执行一句systemctl enable xinetd。
8.本地测试tftp
$tftp 127.0.0.1
tftp>put file //将当前目录的file上传到/opt/tftpboot下
tftp>get file //从/opt/tftpboot目录下载file文件到当前目录
也可直接使用以下命令
tftp_client上传文件到服务器:$tftp -p -r file ip
tftp_client从服务器下载文件:$tftp -g ip -r file
0 0
- Fedora之tftp服务器的安装与使用
- fedora下tftp服务器的安装与配置
- fedora下tftp服务器的安装与配置
- TFTP服务器的安装与配置以及tftp的使用
- TFTP服务器安装与使用
- linux -- Fedora安装TFTP服务器
- 在fedora下安装tftp服务器
- tftp服务器的简介与安装
- fedora16 TFTP服务器的安装与配置
- tftp服务器的安装与配置
- TFTP服务器与客户端的安装
- TFTP服务器的安装和使用
- tftp服务器的使用
- TFTP服务器的使用
- tftp服务器安装与配置
- TFTP 服务器安装与配置
- tftp 的安装,配置与使用
- fedora 安装TFTP
- web安全(入门篇)
- 伪静态配置开启
- linux下查看所有登录用户的历史操作命令
- Flex 布局教程:语法篇
- Wifi密码破解1:通过字典(暴力)破解WIFI密码
- Fedora之tftp服务器的安装与使用
- 在windows下搭建github+jekyll博客平台
- Demo-jQuery常用选择过滤器
- 让两个数进值互换 面试题
- inotify+rsync安装配置
- c/c++ 宏定义
- vagrant入门教程--管理虚拟机快照(7)
- 喻文强的加入购物车效果(完整版,仅供参考)
- Linux进程状态解析之R、S、D、T、Z、X