ubuntu简单搭建nfs tftp服务器

简介: ubuntu简单搭建nfs tftp服务器
+关注继续查看

NFS服务器的安装:
安装:sudo apt-get install nfs-kernel-server
vi /etc/exports
添加 /home/linux/rootfs/ *(rw,sync,no_subtree_check,no_root_squash)

图片1.png
创建nfs服务器的目录 mkdir rootfs chmod 777 rootfs
重启nfs服务sudo service nfs-kernel-server restart
测试挂载:
sudo mount -t nfs 192.168.1.112:/home/linux/rootfs/ /home/linux/sdk
进去sdk查看,挂载成功
image.png
取消挂载:
sudo umount /home/linux/sdk

TFTP服务器的安装:
下载:sudo apt-get install tftpd-hpa
配置TFTP服务器
sudo vim /etc/default/tftpd-hpa
将原来的内容改为:

           TFTP_USERNAME="tftp" 
    TFTP_DIRECTORY="/home/linux/tftpboot/" 
    TFTP_ADDRESS="0.0.0.0:69" 
    TFTP_OPTIONS="-c -s -l"

image.png

创建/home/linux/tftpboot/

    cd;mkdir tftpboot    ;chmod 777 tftpboot

重置tftp服务

    sudo service tftpd-hpa restart

测试:
image.png

相关文章
|
25天前
|
Ubuntu
百度搜索:蓝易云【Ubuntu最新版本(Ubuntu22.04LTS)安装nfs服务器】
NFS(Network File System)是一种允许不同计算机之间共享文件的网络文件系统。
42 0
|
2月前
|
Ubuntu Linux 应用服务中间件
如何在 Ubuntu 18.04 上安装和配置 NFS 服务器
如何在 Ubuntu 18.04 上安装和配置 NFS 服务器
48 0
|
4月前
|
Ubuntu
​ubuntu下nfs,ftp,tftp服务器搭建
​ubuntu下nfs,ftp,tftp服务器搭建
|
9月前
|
Ubuntu 安全
Ubuntu 20.04 搭建NFS文件系统
Ubuntu 20.04 搭建NFS文件系统
129 0
|
Ubuntu
Ubuntu 14.04安装配置NFS服务器
Ubuntu 14.04安装配置NFS服务器
832 0
|
网络协议 Ubuntu 网络安全
|
Web App开发 Ubuntu Linux
相关产品
云迁移中心
推荐文章
更多