网络服务器的搭建(tftp,nfs)

来源:互联网 发布:自动通话录音软件 编辑:程序博客网 时间:2024/05/21 07:56

TFTP服务器:
1.安装tftp服务器:
rpm -ivh /mnt/Packages/tftp-server-0.49-7.e16.i686.rpm

出现安装失败;
需要安装xinetd ;
rpm -ivh /mnt/Packages/xinetd-(tab补全);
2.配置tftp服务器
Vim /etc/xinetd.d/tftp
3 重启tftp
/etc/init.d/xinetd restart
补充:tftp服务器需要一个客服端,

4.测试服务器
关闭防火墙
/etc/init.d/iptables restart
Setenforce permissive

新建文件,保证网络通畅,输入ID即可下载文件。

Nfs服务器
类似于windows自带的共享文件夹

首先需要vim /etc/exports
写入: /tmp 写入的目录
* 代表的是端口,即可以访问的机器IP
(rx,sync,no_root_squash);

/etc/init.d/nfs restart 重启

原创粉丝点击