Ubuntu 14.04 安装配置tftp及NFS服务
2016-07-05 19:12
671 查看
1、建立tftf测试环境
sudo apt-get install tftp tftpd xinetd
建立服务配置文件:
sudo vi /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags= IPv4
}
建立tftp服务文件目录
sudo mkdir /tftpboot
sudu chmod 777 /tftpboot
重新启动服务
sudo /etc/init.d/xinetd restart
测试
echo foo > a.txt
tftp localhost
tftp>put a.txt
2、建立NFS测试环境
sudo apt-get install nfs-kernel-server
配置/etc/exports文件,增加挂载目录
/nfsroot*(rw,sync,no_root_squash)
建立NFS服务文件目录
sudo mkdir /nfsroot
sudu chmod 777 /nfsroot
重启服务
sudo /etc/init.d/nfs-kernel-serverrestart
测试
showmount -e
Export list for foox-ubuntu:
/nfsroot *
sudo mount -t nfs localhost:/nfsroot /mnt
sudo umount /mnt
sudo apt-get install tftp tftpd xinetd
建立服务配置文件:
sudo vi /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags= IPv4
}
建立tftp服务文件目录
sudo mkdir /tftpboot
sudu chmod 777 /tftpboot
重新启动服务
sudo /etc/init.d/xinetd restart
测试
echo foo > a.txt
tftp localhost
tftp>put a.txt
2、建立NFS测试环境
sudo apt-get install nfs-kernel-server
配置/etc/exports文件,增加挂载目录
/nfsroot*(rw,sync,no_root_squash)
建立NFS服务文件目录
sudo mkdir /nfsroot
sudu chmod 777 /nfsroot
重启服务
sudo /etc/init.d/nfs-kernel-serverrestart
测试
showmount -e
Export list for foox-ubuntu:
/nfsroot *
sudo mount -t nfs localhost:/nfsroot /mnt
sudo umount /mnt
相关文章推荐
- php入门(4) 解析json对象
- PHP笔记(一)
- php方法固定传参和可变参数的参数列表
- PHP面向对象三大特点学习(充分理解抽象、封装、继承、多态)
- php 简单分页类
- php基础知识笔记
- wordpress 完善的入门学习教程
- php curl 模拟登录
- ThinkPHP 多应用多模块建立方式
- 基于php的fitnesse安装部署
- ThinkPHP关闭模板缓存
- yaf的安装
- php host-v
- php 和权限设计有关的函数【php】
- YII切换开发和生产环境(命令)
- FTP操作
- thinkphp如何写find_in_set这样的orm查询封装
- php 常用的标签比较
- Laravel 设置时区
- laravel 学习笔记 —— 神奇的服务容器