In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you what is the command for Linux system to open port 8080. 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.
We need to open port 8080 when we want to start Tomcat, so what if port 8080 is opened in the Linux system?
1. Modify the file / etc/sysconfig/iptables [root@combanc bin] # cd / etc/sysconfig/ [root@combanc sysconfig] # vim iptables
The contents of the file are as follows. Note that port 8090 is newly added in order to open port 8090 to the outside world.
# Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. * filter: INPUT ACCEPT [0:0]: FORWARD ACCEPT [0:0]: OUTPUT ACCEPT [0:0]-An INPUT-m state-- state ESTABLISHED The line of host-prohibited1234567891011121314 is actually copied and modified from the previous line. Copy one line in VI with yy, copy multiple lines with yyn, and paste with p. It's convenient.
two。 Restart the iptables service. [root@combanc sysconfig] # service iptables restart iptables: set chain to policy ACCEPT:filter [OK] iptables: clear firewall rules: [OK] iptables: uninstalling module: [OK] iptables: apply firewall rules: [OK] 12345 and then visit it from the outside world:
3. If you do not want to modify the iptables table, you can directly enter the following command: iptables-I INPUT-p tcp-- dport 8090-j ACCEPT what is the command for the Linux system to open port 8080? 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.