In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to configure rsh,rcp,scp multi-node interworking on the CentOS system, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
When we use the CentOS system, when we install RAC, we need to configure the mutual trust relationship of each node, so that rsh, rlogin, rcp and other commands do not need to enter a password to operate other nodes. In addition to configuring ssh according to the method in the managed rac installation documentation, mutual trust can be achieved by modifying files such as .rhosts. In unix (such as aix), you can simply modify the / etc/hosts.equiv implementation, but it is troublesome in Linux and requires some other steps. Let's demonstrate the configuration method in the CentOS system:
In CentOS system, the following operations need to be done on each node
1. Check whether the rsh-server package has been installed in the CentOS system
[root@rac1 ~] # rpm-qa | grep-I ^ rsh-server
Rsh-server-0.17-40.el5
If there is no installation, use the rpm-ivh command to install
2. Make sure the line disable = no exists in / etc/xinetd.d/rlogin
[root@rac1 ~] # cat / etc/xinetd.d/rlogin # default: on # description: rlogind is the server for the rlogin (1) program. The server # provides a remote login facility with authentication based on # privileged port numbers from trusted hosts. Service login {disable = no socket_type = stream wait = no user = root log_on_success + = USERID log_on_failure + = USERID server = / usr/sbin/in.rlogind}
3. Make sure the line disable = no exists in / etc/xinetd.d/rsh
[root@rac1 ~] # cat / etc/xinetd.d/rsh # default: on # description: The rshd server is the server for the rcmd (3) routine and, # consequently, for the rsh (1) program. The server provides # remote execution facilities with authentication based on # privileged port numbers from trusted hosts. Service shell {disable = no socket_type = stream wait = no user = root log_on_success + = USERID log_on_failure + = USERID server = / usr/sbin/in.rshd}
4. Restart the xinetd service on the CentOS system
[root@rac1 ~] # service xinetd restart
Stopping xinetd: [OK]
Starting xinetd: [OK]
5. Edit / etc/securetty in the CentOS system to make sure there are three lines: rexec, rsh and rlogin
[root@rac1 ~] # cat / etc/securetty console vc/1 vc/2 vc/3 vc/4 vc/5 vc/6 vc/7 vc/8 vc/9 vc/10 vc/11 tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 tty9 tty10 tty11 rexec rsh rlogin
6. Edit the / etc/hosts.equiv file on the CentOS system, as shown below
[root@rac1] # cat / etc/hosts.equiv + rac1 oracle + rac2 oracle + rac1-priv oracle + rac2-priv oracle + rac1 root + rac2 root + rac1-priv root + rac2-priv root
7. Edit the / etc/hosts file on the CentOS system, as shown below
[root@rac1] # cat / etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost:: 1 localhost6.localdomain6 localhost6 # public 192.168.2.101 rac1.localdomain rac1 192.168.2.102 rac2.localdomain rac2 # private 192.168.0.101 rac1-priv.localdomain rac1-priv 192.168.0.102 rac2-priv.localdomain rac2-priv # virtual 192.168.2.111 rac1-vip.localdomain rac1-vip 192.168.2.112 rac2-vip.localdomain rac2-vip
8. Edit ~ / .rhosts in the CentOS system, as shown below
[root@rac1] # cat ~ / .rhosts
+ rac1 root
+ rac2 root
+ rac1-priv root
+ rac2-priv root
9. Test whether rlogin and rsh can log in to other nodes without entering a password
[root@rac1 ~] # rlogin rac2 connect to address 192.168.2.102 port 543: Connection refused Trying krb4 rlogin... Connect to address 192.168.2.102 port 543: Connection refused trying normal rlogin (/ usr/bin/rlogin) Last login: Wed Jan 13 08:39:17 from rac1 [root@rac2] # hostname rac2.localdomain [root@rac2] # exit logout rlogin: connection closed. [root@rac1 ~] # rsh rac2 connect to address 192.168.2.102 port 543: Connection refused Trying krb4 rlogin... Connect to address 192.168.2.102 port 543: Connection refused trying normal rlogin (/ usr/bin/rlogin) Last login: Wed Jan 13 08:47:22 from rac1 [root@rac2] # hostname rac2.localdomain [root@rac2] # exit logout rlogin: connection closed. The above content is how to configure rsh,rcp,scp multi-node interworking on CentOS system. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.