Ubuntu tftp nfs 的安装与配置
2011-05-12 11:12
519 查看
1. sudo apt-get install tftp-hpa tftpd-hpa
sudo apt-get install xinetd
sudo apt-get install netkit-inetd
2. cd / sudo mkdir /tftpboot
sudo chmod 777 /tftpboot
3. sudo in.tftpd -l /tftpboot
这样tftp服务器就启动了,下面可以做一个测试
4. cd /tftpboot touch test 建立一个文件
5. cd /home/usrname 登录另一个目录
6. tftp 192.168.0.59 换成自己的ip > get /tftpboot/test 打开目录 /etc/xinetd.d/ 新建文件tftp
tftp内容:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
cps = 100 2
}
重新启动服务:
sudo /etc/init.d/xinetd restart
2.安装NFS
Ubuntu上默认是没有安装NFS服务器的,首先要安装NFS服务程序:
$ sudo apt-get install nfs-kernel-server
(安装nfs-kernel-server时,apt会自动安装nfs-common和portmap)
这样,宿主机就相当于NFS Server。
1、安装nfs服务版
apt-get install nfs-kernel-server
2、修改nsf配置文件
vi /etc/exports
在文件中添加nfs的目录格式如下
/home/nfs/rootfs *(rw,sync,no_root_squash)
存盘退出
3、在根目录下建立nsf的目录
mkdir /home/nfs/rootfs
修改该目录的权限
chmod 777 -R /home/nfs/rootfs
4、从新启动nfs
/etc/init.d/nfs-kernel-server restart
sudo apt-get install xinetd
sudo apt-get install netkit-inetd
2. cd / sudo mkdir /tftpboot
sudo chmod 777 /tftpboot
3. sudo in.tftpd -l /tftpboot
这样tftp服务器就启动了,下面可以做一个测试
4. cd /tftpboot touch test 建立一个文件
5. cd /home/usrname 登录另一个目录
6. tftp 192.168.0.59 换成自己的ip > get /tftpboot/test 打开目录 /etc/xinetd.d/ 新建文件tftp
tftp内容:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
cps = 100 2
}
重新启动服务:
sudo /etc/init.d/xinetd restart
2.安装NFS
Ubuntu上默认是没有安装NFS服务器的,首先要安装NFS服务程序:
$ sudo apt-get install nfs-kernel-server
(安装nfs-kernel-server时,apt会自动安装nfs-common和portmap)
这样,宿主机就相当于NFS Server。
1、安装nfs服务版
apt-get install nfs-kernel-server
2、修改nsf配置文件
vi /etc/exports
在文件中添加nfs的目录格式如下
/home/nfs/rootfs *(rw,sync,no_root_squash)
存盘退出
3、在根目录下建立nsf的目录
mkdir /home/nfs/rootfs
修改该目录的权限
chmod 777 -R /home/nfs/rootfs
4、从新启动nfs
/etc/init.d/nfs-kernel-server restart
相关文章推荐
- ubuntu 安装配置shh,tftp,nfs 笔记
- [3]_嵌入式开发环境搭建1_在ubuntu16.04.3 安装配置nfs 和 tftp服务器
- Ubuntu下tftp和nfs的安装和配置
- Ubuntu 14.04 安装配置tftp及NFS服务
- ubuntu下配置pxe启动网络安装系统(pxe+dhcp+tftp+nfs)
- FTP、TFTP、NFS、SSH介绍及在 Ubuntu 上的安装配置
- ubuntu下NFS服务器安装及配置
- ubuntu下tftp安装、配置、
- 分布式 [ ubuntu 上 NFS的安装配置 ]
- Ubuntu 14.04 下NFS安装配置
- Ubuntu 12.04下NFS安装配置图解
- Ubuntu 12.04下NFS安装配置图解
- Ubuntu 12.04 Nfs 服务器和客户端的安装和配置
- ubuntu16.04安装、配置、使用tftp
- Ubuntu 9.04下nfs安装配置
- Ubuntu10.10中NFS服务的安装及配置
- ubuntu10.10 tftp安装,配置,测试
- BeagleBoneBlack学习(4)——UBuntu14.04下配置TFTP服务器与NFS服务器
- ubuntu nfs-server/client安装配置
- Ubuntu 14.04下NFS安装配置