Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ CentOS7 installation configuration     - When RHEL7 use fdisk partition, all partitions can not be used (Linux)

- A simple shell script for monitoring in Linux (Linux)

- To protect the temporary files for Linux security (Linux)

- Django template inheritance child (Programming)

- C language function pointer and a callback function (Programming)

- Install the system cleaning software under Linux: BleachBit 1.4 (Linux)

- Linux Getting Started Tutorial: / var / spool / clientmqueue fill the root directory (Linux)

- Linux distributed message queue RocketMQ deployment and monitoring - Dual Master (Server)

- Using Libreoffice under ubuntu (Linux)

- Oracle set and remove columns unavailable (Database)

- Repair Chrome for Linux is (Linux)

- AngularJS (Programming)

- MySQL full-index scan bug (Database)

- MariaDB 10.1 and MySQL 5.7 in general performance on commodity hardware (Database)

- Linux common commands: nslookup, ls md5sum, uname, history, etc. (Linux)

- JavaScript in null undefined summary (Linux)

- MongoDB slice simple example (Database)

- Linux firewall rules example Extracts (Linux)

- Oracle table Access Control (Database)

- Installation on the way to the root source Ubuntu Server 14.04 LTS version Odoo8.0 (Server)

 
         
  CentOS7 installation configuration
     
  Add Date : 2017-08-31      
         
         
         
  CentOS 7 installation and configuration

surroundings

Nps 192.168.1.97

Client 192.168.1.98

First, yum installation

Yum -y install nfs-utils rpcbind

Nfs configuration file / etc / expots

The default is empty

Vi / etc / exports

/ Opt / test / 192.168.1.0/24 (rw, no_root_squash, no_all_squash, sync, anonuid = 501, anongid = 501)

Second, make the configuration effective

Exportfs -r

Note: The configuration file description:

/ Opt / test is the shared directory

192.168.1.0/24 can be a network segment, an IP, it can be a domain name, domain names, such as support: * .qq.com

Rw: read-write, can read and write;

Ro: read-only, read-only;

Sync: the file is written to the hard disk and memory;

Async: file temporarily stored in memory, rather than directly into memory;

No_root_squash: NFS client to connect to the server if the use of the root, then the server to share the directory, it also has root privileges. It is obviously not safe to turn on this.

Root_squash: NFS client to connect to the server if the use of root, then the server to share the directory, with anonymous user privileges, usually he will use nobody or nfsnobody identity;

All_squash: regardless of the NFS client to connect the server to use when the user, the server share directory is to have anonymous user privileges;

Anonuid: Anonymous user's UID value, can be set here.

Anongid: GID value of the anonymous user.

Third, start nfs

Service rpcbind start

Service nfs start

Chkconfig rpcbind on

Chkconfig nfs on

Fourth, the client mount:

Showmount -e 192.168.1.97 # View can be mounted

Export list for 192.168.1.97:

/ Opt / test 192.168.1.0/24

The client mounts

Mount -t nfs 192.168.1.97:/opt/test/mnt

Silent is both successful

Client encountered in the loading of a problem is as follows, the network may be less stable, NFS default is to use UDP protocol, replaced by TCP protocol can be:

Mount -t nfs 192.168.1.97:/opt/test/mnt -o proto = tcp -o nolock
     
         
         
         
  More:      
 
- How to create a cloud encrypted file system in Linux systems (Linux)
- Linux based serial programming (Programming)
- openSUSE 13.1 / 13.2 installation SoundConverter 2.1.2 (Linux)
- STL in the list of erase () method (Programming)
- Ora-1092: OPI colleague K aborting process --- killed by OO Well killer (Database)
- Ubuntu prevent arp attacks (Linux)
- CentOS network configuration 7, and set the host name and IP-bound problems (Linux)
- Understand ASP.NET 5 running the command: DNVM, DNX, and DNU (Server)
- Oracle 11g 10g induced into error (Database)
- iSCSI + multipath achieve DM multipath storage (Server)
- Linux system network security tools sudo Introduction (Linux)
- Linux use chattr and lsattr commands to manage file and directory attributes (Linux)
- The difference between vi and nano (Linux)
- Linux vi command list (Linux)
- ThinkPad X201i installation notes Debian 7.5 (Linux)
- Zabbix configure DataGuard monitoring (Database)
- Ubuntu deployed under regular tasks with crontab (Linux)
- Installation and deployment of Hadoop 2.7.1 on Ubuntu 14.04 LTS (Server)
- Use Docker / LXC quickly launch a desktop system (Linux)
- How Mutt mail client to use cipher text password (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.