本文主要是介绍centos fedora nfs kermit tftp 配置,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
tftp服务器:1.yum install tftp tftpd(tftp-server) xinetd
2.关闭防火墙和selinux:
selinux: vim /etc/selinux/config(/etc/sysconfig/selinux)-->SELINUX=disabled
bash$ setenforce=0
查看getenforce
iptables:1)
重启后永久性生效: 关闭:chkconfig iptables off
临时关闭:
service iptables stop(/etc/init.d/iptables stop)查看:service iptables status
3.配置
tftp:
vim /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s -c /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
4.重启动服务端
service xinetd restart(/etc/init.d/xinetd restart)
5.添加权限: chmod 777 -R /tftpboot
6.测试 tftp 127.0.0.1
get put
配置nfs服务
1.下载安装 yum install portmap nfs-utils
(有的发行版安装包不同比如yum install nfs-kernel-server)
2.vim /etc/exports
添加
$PATH(要挂载的路径) *(rw,sync,no_root_squash)
3.chmod 777 $PATH
4.配置开机启动及启动nfs-server
# systemctl enable nfs-server.service
5.nfs-server检查是否开启
# systemctl is-enabled nfs-server.service
6.手动开启
service rpcbind start
service nfs(nfs-kernel-server) start
7.检测挂载:
mount localhost:$PATH
8:该过程也要关闭
iptables 和selinux
配置ckermit
1.下载安装
yum install ckermit
2.vim /etc/kermrc
输入
set line /dev/ttyS0
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5
为保险起见复制到
/root/.kermrc /home/(用户)/.kermrc /etc/kermit/kermrc
3.chmod 777 /dev/ttyS0
这篇关于centos fedora nfs kermit tftp 配置的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!