In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
NFS features:
1) based on UDP/IP
2) the function is basically the same as the network disk, but the performance is not so strong.
Steps for building a NFS server:
Install the nfs software on ubantu: nfs-kernel-server
Configuration file
1) Open the configuration file: / etc/exports
2) add configuration: / home/topeet/minLinux/ * (rw,sync,no_root_squash)
The meaning is as follows:
Shared directory on / home/topeet/minLinux/: server
*: means to accept access to any network segment
Rw: readable and writable
Sync: synchronization
No_root_squash: it's a long story, described as follows:
[no_root_squash: a user (client) who logs in to a NFS host using a shared directory (client) if it is root, then he will have root permission for this shared directory! They are all bosses who keep their word. Due to the risk, it is generally used in debugging)
Root_squash: when logging in to a NFS host using a shared directory (client), if the user (client) is root, then the user's permissions will be compressed to anonymous users, usually his UID and GID will become the identity of the nobody system account. Don't think that you are also a master, this is my place, don't do it! )]
Restart the portmap service
/ etc/init.d/portmap restart
* portmap port mapping: help network applications (nfs) find the correct communication port (port)
Restart the nfs service
/ etc/init.d/nfs-kernel-server restart
Kernel configuration steps: (the kernel needs to be reconfigured and burned before the nfs of the development board can be used)
Copy the config_for_linux_scp_elite file to .config under the path where the kernel is located (/ home/topeet/android4.0/iTop4412_Kernel_3.0). As follows:
Cp-r config_for_linux_scp_elite .config
Configure the kernel
Make menuconfig (used to open and modify the .config file, which cannot be opened with vi. Open it for the first time, it will take a little longer)
Note: when entering a command, you need to operate under the path of the kernel (that is, / home/topeet/android4.0/iTop4412_Kernel_3.0), otherwise you will be prompted that the command cannot be found.
1) step 1: go to the menu "Networking support"-"Networking option" and select "IP:kernel level autoconfiguration" (kernel-level autoconfiguration)
2) step 2: go to the menu "File systems"-"Network File Systems" and select the following 6 items:
"Network client support" (Network client Service)
"NFS client support for NFS version 3" (NFS client service for NFS version 3)
"NFS client support for the NFSv3 ACL protocol extension" (NFS client service for NFSv3 ACL protocol extension)
"NFS client support for NFS version4" (NFS client service for NFS version4)
"NFS client support for NFSv4.1" (NFS client service for NFS version 4.1)
"Root file system on NFS" (enable root file system on NFS)
3) step 3: enter the menu "Boot options" and configure "Default kernel command string". Enter the following configuration information (comments in parentheses). Note that there are no branches in the middle.
Root=/dev/nfs rw nfsroot=192.168.1.103:/home/minilinux/system (root mount path: / dev/nfs; read and write: rw; nfsroot path: 192.168.1.103:/home/minilinux/system is the shared directory of the server)
Ip=192.168.1.230:192.168.1.103:192.168.1.1:255.255.255.0:iTOP:eth0:off (development board IP:192.168.1.230; server IP:192.168.1.103; development board gate:192.168.1.1; development board mask:255.255.255.0; development board host name: iTOP; network card: eth0)
Rootfstype=ext4 init=/linuxrc console=ttySAC2,115200 (root file system format: ext4; initialization path: / linuxrc; terminal: use serial port SAC2, baud rate 115200)
Finally exit and save the configuration!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.