Build a distributed computing cluster using openmpi + NFS + NIS
1. configure the firewall
Correctly configure the firewall filtering rules. Otherwise, the NFS file system fails to be mounted, the NIS account authentication fails, and the mpirun remote task instance fails to be deployed. Generally, the computing cluster is used in the internal LAN, so you can directly close the firewall of all node servers w
1. Configure the firewallProperly configure the firewall filtering rules, otherwise it will cause NFS file system mount failure, NIS account authentication failure, MPIRun remote task instance delivery failure. In general, the compute cluster is used on the internal LAN, so you can shut down the firewall of all node servers without having to worry too much about security issues.The relevant commands are as follows:Service iptables Stop #或者/etc/
Install the NIS Service
Network Information Service is a network product that centrally controls several systems for database management.
Related services: ypserv (NIS Server), ypbind (NIS client), and yppassword (when changing the password. Communication between the client and the server through this service)
Port: Portmap: 111 because
Preface:ldap Key Concepts and terminologyOpennebula issues:Missing step to use LDAP as default driverCp-r/var/lib/one/remotes/auth/ldap/var/lib/one/remotes/auth/defaultStandalone LDAP Daemon, SLAPD (Standalone Lightweight Access Protocol)Lightweight Directory Access ProtocolInformation in the LDAP directory is organize
NIS(Network Information Service)
NIS is a network product that centrally controls several systems for database management. NIS simplifies the management of UNIX and Linux desktop users. The client can use it to manage files on the central server. Users of the desktop system do not need to create their own/etc/passwd. They simply use files maintained on the
One, NIS definition
NIS (Network Information Service, Network information Services), also known as the YP (yellow Pages) protocol, is an RPC (remote procedure Call) application service that provides directory services. Through it, you can share a centralized password file on the network, which greatly simplifies the client user's maintenance of account and password.
Second, the experimental environment
F
NIS Overview: NIS, short for NetworkInformationServices, stands for network information services. It was initially developed by SunMicrosystems and is primarily intended for centralized management of UNIX systems. At present, it has basically become the industry standard; all mainstream UNIX-like systems (Solaris, HP-UX, AIX, Linux, NetBSD, OpenBSD, FreeBSD and so on) Support
The full name of nis is network information system, and yp (yellow pages ). Nis or yp allow many different unix machines to have the same system information, such as the same user account and password, so that System Administrators and Users can easily move between different machines, inevitably, there will be security flaws, but security is not discussed here. And about
Python-ldap login case, python-ldap case
1 ldap_config = {2 'ldap _ path': 'ldap: // xx. xx. xx. xx: 389 ', 3'base _ dn': 'ou = users, dc = ledo, dc = com', 4'ldap _ user': 'uid = reporttest, ou = users, dc = ledo, dc = com ', 5 'ldap
Redhat NIS client settings:Installation Ypbind steps (General ISO CD-ROM)# vi/etc/yp.confPress A or I to enter edit modeDomain Ming Server 10.0.1.3Press the ESC key to exit edit mode: Wq# vi/etc/nsswitch.confPress A or I to enter edit modePasswd:files NIS (default is Passwd:files)Shadow:files NIS (default is Shadow:files)Group:files
/nfslock restartThen add the following to this file in/etc/exports:/home 10.10.10.0/24 (Rw,async,no_root_squash)/usr/local 10.10.10.0/24 (Rw,async,no_root_squash)Do the above changes, then execute: exportfs-a, so that the home/home and/usr/local two directory output sharing;4root Login to the other three nodes, add the following content in the file/etc/fstab (that is, the boot automatically mount):Node1:/home/home NFS Default 0 0Node1:/usr/local/usr/local NFS Default 0 0Re-execute Chkconfig netf
1. Installation Error message:Error:microsoft Visual C + + 9.0 is required. Get it from HTTP://AKA.MS/VCPYTHon272. Do not use the PIP install PYTHON-LDAP django-auth-ldap,pip Install the latest version3. Go to the official website to find the lower version download: https://pypi.python.org/pypi/django-auth-ldap/1.1.4https://pypi.python.org/pypi/python-
LDAP-Series-1-Chapter-3-PHP-LDAPIfyouwanttousePHPwithldap.Youhavetoaddtheextensionlib. (ldap. so) GototheinstallfileofPHP. $ cdoptphp-5.4.5extldap $ us LDAP-Series-1-Chapter-3-PHP-LDAP
If you want to use PHP with ldap. You have to add the extension lib. (
Two questions about NIS-general Linux technology-Linux technology and application information. The following is a detailed description. I would like to ask, that is, another step during the NIS experiment.
I:
[Root @ test root] # nisdomainname
What is the role of this step? Can I skip this step? Do I need to perform this step every time I start the system?
II:
[Root @ test root] #/usr/lib/yp/ypinit-m
This article involves nis server and client settings 1. server Part 1. edit/etc/rc. local and add nisdomainnamejohn in the last line. (Of course, your nisdomainname may be different from mine .) 2. edit/etc/sysconfig/network. the following red font indicates the NETWORKING = yesNETWORK to be modified or added.
This article involves nis server and client settings
I. server part
1. edit/etc/rc. local and add
Article Title: how to delay Qmail sending when there is a problem with NFS or NIS. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
If the user directory is on NFS or the user information is stored on NIS, the Qmail system will send a message as if the user does not exis
Symptom:
You cannot log on from a common user on a Linux machine. It takes a long time to log on and cannot log on,
When you manually mount the/home directory of the NIS server, the following error occurs:
Do_ypcall: clnt_call: RPC: unable to send;Errno = network is unreachable do_ypcall
Check and find that this machine is an NIS client machine.
Solution:
Start services related to the
In an insecure NIS instance, The ypcat passwd command can be used on any machine to view the hash values of all NIS accounts. This poses a security risk. After C2 Security is set, ypcat passwd can see that the original hash value of the password is replaced by # logname, which can prevent the password hash from being stolen. You only need to perform a few steps to set C2 Security in the existing
Install NIS service > sudo apt-get Install NIS Install autofs Service
> sudo apt-get install autofs edit/etc/auto.master and add the following lines
/home Auto.home--timeout=10000
Edit/etc/yp.conf and add the following lines
Domain www.kongxx.com server xxx.xxx.xxx.xxx
Backup/etc/nsswitch.conf, and create a new file and add the following lines
Passwd:file
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.