NFS sharing and DNS configuration awk usage

Source: Internet
Author: User

Check NFS

# Rpm-Qa | grep NFS # rpm-Qa | grep rpcbind: Set NFS rpcbind to boot # chkconfig NFS on # chkconfig rpcbind on # Start NFS rpcbinds # service rpcbind start # service NFS start # view the status of the rpcbind NFS service # service rpcbind status # service nfs status Command for installing NFS rpcbind # Yum-y install rpcbind nfs-utils # setting the shared directory # vi/etc/exports add/home/hadoop * (RW, sync, no_root_squash) restart the NFS rpcbind service: # service rpcbind restart # service NFS restart to another server 192.168.1.58 to check whether the sharing is successful # showmount-e 192.168.1.57 Mount directory # mkdir/nfs_share # Mount-t nfs 192.168.1.58: /home/hadoop // nfs_share/# mount the NFS Directory automatically after startup # vi/etc/fstab Add the following content 192.168.1.58: /home/hadoop/nfs_share NFS ults 1 1 create a soft connection for the key # ln-S/nfs_share /. SSH/authorized_keys. /. SSH/authorized_keys test whether SSH 192.168.1.58 DNS server configuration is successful # rpm-Qa | grep bind-utils # rpm-Qa | grep bind-chroot # Yum-y install bind # Yum-y install bind-utils # Yum-y install bind-chroot # rpm-Qa | grep '^ bind' # Run the command again if bind-chroot is not installed: yum-y install bind-chroot # vi/etc/named. conflisten-on port 53 {Any ;}; allow-query {Any ;};# VI/etc/named. rfc1912.zones

Zone "hadoop.com" in {

Type master;

File "named.hadoop.com ";

Allow-update {none ;};

}

 

Zone "0.168.192.in-ADDR. Arpa" in {

Type master;

File "named.192.168.0.zone ";

Allow-update {none ;};

}

 

CD/var/named/

CP-P named. localhost named.hadoop.com

VI named.hadoop.com

#

CP-P named. localhost named.192.168.0.zone

VI named.192.168.0.zone

 

Client

# Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Dns1 192.168.1.60

# Reload the DNS configuration file

# Service named reload

# Service named restart

# Service named stop

# Service named start

 

Set DNS startup to startup

# Chkconfig named on

 

Verify access:

NSLookup 192.168.1.60

 

Batch copy:

Cat list.txt | awk-F': ''{print (" SCP hadoop.tar.gz [email protected] "$1":/APP/hadoop ") 'A '}'

SCP hadoop.tar.gz [email protected]:/APP/hadoop SCP hadoop.tar.gz [email protected]:/APP/hadoop SCP hadoop.tar.gz [email protected]: /APP/hadoop cat list.txt | awk-F': ''{print (" SCP hadoop.tar.gz [email protected] "$1":/APP/hadoop ") 'A'} '> listscp. sh [[email protected] ~] $ Cat listscp. sh SCP hadoop.tar.gz [email protected]:/APP/hadoop SCP hadoop.tar.gz [email protected]:/APP/hadoop SCP hadoop.tar.gz [email protected]: /APP/hadoop [[email protected] ~] $ Chmod 775 listscp. Sh [[email protected] ~] $./Listscp. Sh

NFS sharing and DNS configuration awk usage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.