problem. The principle is to save all user account and password information on the NIS server, when a user logs on to one of the Linux Hosts and performs account and password verification, the logon host sends a verification request to the NIS server. If the authentication is correct, the user logs on successfully, otherwise, the user fails to log on.
The NIS Server saves the user's account and password in the database file. The NIS client sends a request to it through RPC (Remote Procedure Cal
append after matching lineI: inserting insert before matching lineC: Whole line substitutionR: Reads the contents of the file into the readW: Write text to file writeS: String substitution (matches regular expression) substitution(1) '//p ' =!show X to y lines# sed-n ' X,yp 'x to Y lines do not print# sed-n ' x,y!p '! Take the reverseshow X to X+y line# sed-n ' X,+yp 'Show Line 1th# sed-n ' 1p 'Show last 1
Article Title: configure the NIS server and client in RHEL5. 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.
NIS is short for Network Information Services. It was initially developed by Sun Microsystems for UNIX®(Originally SunOS) centralized management of the system. At present, it has basically become the industry standard, all mainstream UNIX-like systems
The Master database cannot be found when the NIS Master database is created ~~ Help me see ~~ -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. I want to create a database
/Etc/hosts
127.0.0.1 localhost. localdomain localhost localhost4
: 1 localhost6.localdomain6 localhost6
192.168.100.2 Master
192.168.100.1 Slave
This will happen when you create a database.
[Root @ localhost ~] #/Usr/lib/yp
file under/mnt is the file on the server. when viewing the file, the server is in/filepub, on the Nis server of the/mnt client, run # vi/etc/hosts192.168.0.100 (server ip) abc.com abc to view ping abc. comDomainname abc, comeho "domainname abc.com">/etc/rc. local # vi/etc/sysconfig/network NIS_DOMAIN = abc.com install nisyum install yp *-y # vi/etc/ypserv. add "192.168.0.0/24: *: none" to user useradd aaa Passwd 123 and upgrade it to domain User:/usr
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 NIS and NFS depend on the Portmap service
Related packages: ypserv (required for NIS servers) ypbind (required for NIS clients, installed by default),
need to first identify which NIS domain to obtain, this avoids mutual interference. We can also configure multiple NIS servers. In short, we can regard NIS domain as a set of NIS maps with significant mark.
4. the command domainname can be used to set the domain of NIS (not DNS or other domain), but this setting will expire after the machine restarts, unless: Modify/etc/sysconfig/network, add nisdomain = xxx (add domainname to the/etc/defaultdomain file under RedHat and Solaris) or add the doma
allows the NIS server host to perform correct network settings.
3. Set the yp. conf configuration file.
The configuration file of the ypbind service program is yp. conf. You only need to set the NIS domain name and the NIS server host name in this configuration file.
The NIS domain name currently used is set as xiaonuo.com, and the Host Name of the NIS server used is nisserver.
4. Set the nsswitch. conf
the command you want, press the left or right-click button to execute this Before a command, edit it] # service httpd start 3, four different methods to quickly execute the previous command. Sometimes for some reason, you need to execute the previous command, the following four methods can be used to repeat the last command: 1. use up arrow to view the previous command and press enter to execute it. 2. enter it in the command line !! Press enter. 3. enter it in the command line! -1 and press En
MATLAB topass VariablesAAndBTo yourmex-file.CAndDAre left unassigned.
The gateway routineFunc. cUsesMxcreate *Functionsto create the MATLAB Arrays for your output arguments. It setsPlhs [0]AndPlhs [1]Tothe pointers to the newly created MATLAB arrays. It usesMxget *Functionsto extract your data from your input argumentsPrhs [0]AndPrhs [1]. Finally, it callyour computational routine, passing the input andoutput data pointers as function parameters.
MATLAB assignsPlhs [0]ToCAndPlhs [1]ToD.
C/C ++
the market of camera B and is not visible, so it counts as occluded.As for the YP, fell on the YQ and camera a light heart connection, counted as outlier (note, YP and YK, YP in camera A's field of view, but camera a is here to observe the depth of YQ)So, in the middle, Inlier has two, outlier one, occluded aIn the code (after misc.cpp 913 lines there are two fu
Linux uses the hostname command to modify the host name.
An example of modifying a hostname in Linux.
Run directly hostname can view the current host name, to view the hostname of other command parameters, run hostname-h as follows:
Usage:hostname [-v] {hostname|-f file} set hostname (from file)
DomainName [-v] {nisdomain|-f file} set NIS domainname (from File)
hostname [-v] [-d|-f|-s|-a|-i|-y|-n] Display formatted name
hostname [-v] display hostname
Hostname-v|–version|-h|–help Print info a
After the accumulation of the front, today finally realized the cluster environment to deploy Hadoop, and successfully ran the official example.
Work as follows:
Two machines:
Namenode: Internet Small, 3G memory, machine name: yp-x100e,ip:192.168.101.130.
Datanode: Virtual machine, Win7 download VMWare10 virtual UBUNTU14, virtual machine name: ph-v370,ip:192.168.101.110
Ensure that you can ping each other, according to the machine name and IP con
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.