In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Background:
Idle is also idle. Rebrush the windows system, install a virtual machine (192.168.1.108), run a CentOS-7-x86_64-Minimal-1511 system environment (configure static IP192.168.1.105), and then install your own docker, running around. Unexpectedly, I was seen by the elder brother at the next table, so my machine was robbed ~ ~ then I will install another one, thinking that it is only a matter of minutes. But it is always impossible to ssh 192.168.1.104.
Process:
So check the network card configuration, firewall, and the network can also ping, the intranet and Baidu are no problem.
Then I passed the machine ssh 104. It suddenly dawned on me after reporting a mistake. It's a port conflict.
Then change the port. Success.
The methods are as follows:
Reference link: https://www.cnblogs.com/rwxwsblog/p/5756894.html
1. Modify / etc/ssh/sshd_config
2. Modify firewall configuration
Add to the firewall:
Firewall-cmd-- zone=public-- add-port=20002/tcp-- permanent (permanent saves the configuration, otherwise this modification is invalid after the next restart)
Restart:
Firewall-cmd-reload
Check whether the port is added successfully. If the port is added successfully, yes will be displayed, otherwise no
Firewall-cmd-zone=public-query-port=20002/tcp
3. Modify SELinux
Semanage port-l | grep ssh
Add port 20002 to SELinux
Semanage port-a-t ssh_port_t-p tcp 20002
Then confirm whether to add it or not
Semanage port-l | grep ssh
Restart ssh
Systemctl restart sshd.service
Both the semanage and firewalld-cmd commands need to be installed
Install semanage:yum-y install policycoreutils-python.x86_64
Install firewalld-cmd:yum install firewalld
Log in again through xshell. Success.
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.