In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to check whether port 8080 of linux is occupied". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to check whether port 8080 of linux is occupied".
In linux, you can use the netstat command to check whether port 8080 is occupied. This command is used to display the status of the network. The syntax is "netstat-tln | grep 8080". If the returned result is empty, port 8080 is not occupied. If the returned result is not empty, the port is occupied.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to check whether port 8080 of linux is occupied
Enter a command
Netstat-tln | grep 8080
To check port 8080, press enter to execute.
The Linux netstat command is used to display the network status.
The use of netstat instructions can let you know the network situation of the entire Linux system.
Grammar
Netstat [- acCeFghilMnNoprstuvVwx] [- A] [--ip]
Parameter description:
-an or-- all displays the Socket in all connections.
-An or-- lists the relevant addresses in the network type connection.
-c or-- continuous continuously lists the network status.
-C or-- cache displays the cache information configured by the router.
-e or-- extend displays other relevant information about the network.
-F or-- fib displays the route cache.
-g or-- groups displays the list of group members of the multicasting function group.
-h or-- help online help.
-I or-- interfaces displays a form of web interface information.
-l or-- listening displays the Socket of the server in monitoring.
-M or-- masquerade shows a camouflaged network connection.
-n or-- numeric uses the IP address directly, not through the domain name server.
-N or-- netlink or-- symbolic displays the symbolic connection name of the network hardware peripheral.
-o or-- timers displays the timer.
-p or-- programs displays the program identification number and program name that are using Socket.
-r or-- route displays Routing Table.
-s or-- statistics displays statistical tables of network work information.
-t or-- tcp displays the connection status of the TCP transport protocol.
-u or-- udp shows the connection status of the UDP transport protocol.
-v or-- verbose shows the instruction execution process.
-V or-- version displays version information.
-w or-- raw displays the connection status of the RAW transport protocol.
-x or-- unix this parameter has the same effect as specifying the "- A unix" parameter.
-- ip or-- inet this parameter has the same effect as specifying the "- An inet" parameter.
Examples are as follows:
If empty information is returned, it is not occupied.
If the return shows a message, it means that it is occupied by a process.
Thank you for your reading, the above is the content of "how to check whether Port 8080 of linux is occupied". After the study of this article, I believe you have a deeper understanding of how to check whether Port 8080 of linux is occupied, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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: 206
*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.