“MY-I.MX6 TFTP & NFS 环境搭建”的版本间的差异
(创建页面,内容为“===TFTP环境搭建:=== (1) Setup tftp server files (下载并安装tftp)<br> <span style="background:yellow">$ sudo apt-get install tftpd tftp openbsd-inetd<b...”) |
|||
第1行: | 第1行: | ||
+ | <div> | ||
+ | |||
===TFTP环境搭建:=== | ===TFTP环境搭建:=== | ||
(1) Setup tftp server files (下载并安装tftp)<br> | (1) Setup tftp server files (下载并安装tftp)<br> | ||
第35行: | 第37行: | ||
<span style="background:yellow">$ sudo /etc/init.d/portmap restart<br></span> | <span style="background:yellow">$ sudo /etc/init.d/portmap restart<br></span> | ||
<span style="background:yellow">$ sudo /etc/init.d/nfs-kernel-server restart<br></span> | <span style="background:yellow">$ sudo /etc/init.d/nfs-kernel-server restart<br></span> | ||
+ | </div> |
2018年6月11日 (一) 15:11的最新版本
TFTP环境搭建:
(1) Setup tftp server files (下载并安装tftp)
$ sudo apt-get install tftpd tftp openbsd-inetd
(2) make a tftp directory (新建tftp目录和改变其属性)
Here we make /home/myzr/tftpt be a tftp directory.
$ mkdir /home/myzr/tftp
$ chmod 777 /home/myzr/tftp
(3) Open /etc/inetd.conf and edit it (修改配置文件的tftp目录)
$ sudo gedit /etc/inetd.conf
Coment this line :
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
Add new line:
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /home/myzr/tftp
(4)Restarting tftp service (重启tftp)
$ sudo /etc/init.d/openbsd-inetd restart
NFS环境搭建:
(1) Install NFS server package (下载并安装nfs)
$ sudo apt-get install nfs-kernel-server
(2) Create NFS directory:/home/myzr/nfsroot (新建nfs目录)
$ mkdir /home/myzr/nfsroot
(3) Configure mounted directory and authority (修改配置文件的nfs目录)
$ sudo gedit /etc/exports
Add the following line at the end of the file:
/home/myzr/nfsroot *(rw,sync,no_root_squash)
(4) Restart the NFS service (重启nfs)
$ sudo /etc/init.d/portmap restart
$ sudo /etc/init.d/nfs-kernel-server restart