One, see which ports are open NETSTAT-ANPSecond, turn off the port number: iptables-a input-p TCP--drop port number-j dropIptables-a output-p TCP--dport port number-j DROPThird, start the slogan: iptables-a input-ptcp--dport port number-j ACCEPTFour, the following is the use of the Linux Open Port command.Nc-lp (Open 23 port, Telnet)Netstat-an | grep 23 (see if 23 ports are open)Five, Linux open port comma
Security is the most important, the least service in exchange for the greatest security. This maximizes security by enabling only those services that need to be used, shutting down services that are temporarily unavailable, or services that are not being used.
As a Web server, not all default services are required, so it can be disabled like print and shared services. Of course, your system patches also need to be updated to the latest, and some port vulnerabilities have been fixed as patches h
Recently encountered a project, the front end with the Apache HTTTPD (80 port), through the two-machine load balance forward to the back end of the two Tomcat processing (8081 and 8082 ports), now need to monitor the situation of these three ports, once down need to be able to immediately alarm processing. Batch system monitoring is better to use Nagios software to achieve, such a small project to install a
There are two ways in which a process is occupied:
The code is as follows
Copy Code
1, NETSTAT-ANL | grep "80";2, lsof-i:80
Cases
code is as follows
copy code
[Root@host ~]# netstat-pan | grep:80 tcp nbsp 0 0 127.0.0.1:80 0.0.0.0:* listen 23903/nginx tcp 0 0 0.0.0.0:8081 0.0.0.0 :* listen 23509/httpd
How to terminate a process: Kill PID
about Netstat
The NETSTAT-TLN command is used to view port usage /etc/
I set up four folders under D:/0oes:Then, I want to bind the different ports of the server with them.Collegeoes corresponds to 80 port schooloes corresponds to 90 port collegeres corresponds to 8080 port schoolres corresponding 9090 portbind non-80 ports firstOpen httped.confAdded at the end of the httped.conf:Listen 90then modify the binding path for port 80Modify the DocumentRoot C:\wamp\www to D:\0oes\co
[Editor's note: if we find that the network is disconnected on weekdays, we will use the ping command to see what went wrong. However, many hackers are using the ping command to see which computers are suitable for BOTs .]As campus networks become more and more popular, and users have improved their awareness of network knowledge, many people download some hacking tools online or use Ping commands to scan ports and IP addresses to find bots, it has a
The 1-gigabit layer-3 switch is quite common, so I have studied the 1-gigabit layer-3 Switch with high port flexibility. Here I will share it with you and hope it will be useful to you. After the success of the Gigabit center switch gmt7324, NETGEAR recently launched a more advanced layer-3 gmt7312 switch with more flexible port configurations.
GSM7312 provides advanced features such as GSM7324's rich layer-2 switching, layer-3 routing, and QoS of service quality management. It has the same soft
There were few problems when publishing Web sites on IIS, because the ports are configured on their own, but recently encountered such a problem, less nonsense, see
Pictures: After the launch of the site, can not start, when the error, prompting the process can not access. Find out why the port is occupied. We used to publish the site, we will set a port, and this port is different from other ports
This digest is written from:Baidu ExperienceHttps://www.cnblogs.com/ieayoio/p/5757198.htmlFirst, Windows: Start----> Run---->cmd, or the WINDOW+R key combination to bring up the command window1, enter the command: Netstat-ano, list all the conditions of the port.In the list we look at the occupied port, such as 49157, and find it first.2, view the occupied port corresponding PID, input command: Netstat-aon|findstr "49157", enter, note the last digit, namely PID, here is 2720. 3, continue to inpu
One, in the Windows operating system, the query port occupies and clears the port occupied by the programAfter elevation of privilege by: Netstat-bor with1. The process ID that the query port occupiesClick "Start" and "Run", enter "CMD" and click on the OK button to enter the DOS window, then run the following command separately:NETSTAT-A-N each port occupiedNetstat-ano each port occupancy and process PIDNetstat-aon | Findstr "80"C:\users\admin>netstat-aon|findstr "80"TCP 127.0.0.1:9080 0.0.0.0:
To monitor the performance of mysqlserver, it is estimated that many people use the mysql-cacti-templates template in cacti, but its default configuration only supports monitoring of the standard mysql3306 port. In fact, its script supports multiple ports, but the configuration in the template is not supported by default. The script parameters are as follows: Usage: phpss_get_mysql_stats
To monitor the performance of mysql server, it is estimated that
I/O Completion Ports
I/O Completion Ports are the mechanisms by which an application uses a pool of threads that was created when the application was started to process asynchronous I/O requests. these threads are created for the sole purpose of processing I/O requests. applications that process logs concurrent asynchronous I/O requests can do so more quickly and efficiently by using I/O Completion
1. The server has 65,535 ports, which is the variable that records the server port, is two bytes and is a short int. Its two-byte storage space determines that it can only open 65535 ports.2. What is the port for? The port is used to listen for TCP connections. That is, the client HTTP connection is communicated using the IP address + server port number.3. That the client comes in HTTP connection request, w
Add open ports to CentOS firewallAdd
firewall-cmd --zone=public --add-port=80/tcp --permanent
(-Permanent takes effect permanently. If this parameter is not set, it will become invalid after restart)Reload
firewall-cmd --reloadView
firewall-cmd --zone= public --query-port=80/tcpDelete
firewall-cmd --zone= public --remove-port=80/tcp --permanent1. Basic use of firewalld start: systemctl start firewalld view status: systemctl status firewalld stop:
What are common TCP ports?
FTP: defines the file transfer protocol. Port 21 is used. It is often said that a certain host has enabled the FTP service, which is the file transfer service. You must use the FTP service to download files and upload them to the home page.
TELNET: Are you on BBS? In the past, BBS was a character-only interface. The server supporting BBS opened port 23 to provide external services. In fact, Telnet really means remote log
PHP + Apache how to monitor multiple ports and configure multiple sites, phpapache
Configure httpd. conf
Listen to multiple ports# Listen: Allows you to bind Apache to specific IP addresses and/or# Ports, instead of the default. See also the # Directive. # Change this to Listen on specific IP addresses as shown below# Prevent Apache from glomming onto all bound I
Frombegintoend original C # get the system open ports and statesThe cmd command line is actually called through C # programming, then the netstat command is called, and the output of the cmd command is transferred to the C # console program. You can also export the results to a file.usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Diagnostics; namespace_19 Get the system open port and status {classProgram {
Common Linux ports nbsp; famous ports nbsp; 1tcpmuxTCP port service multiplexing nbsp; 5e E remote job portal nbsp; 7echoEcho Service nbsp; 9discard: Null service used for connection testing nbsp; 111_at is used to list connected terminals
Common Linux ports
Famous Port
1 tcpmux TCP port service multiplexing
5. objective E remote job portal
7. echo service
BCB direct access to hardware ports and physical memory-Winio applications(Read hard disk parameters and motherboard BIOS information, support win9x/nt/2k/xp/2003)On the direct access port, there are many sites have been discussed in many articles, but there is no ideal way to find.I'm using Yariv Kaplan's Winio 2.0. Although Winio is flawed, it is the best I have ever used.Winio is free and open source, can be downloaded directly to his homepage, or
Reprinted from: https://linux.cn/article-4243-1.htmlIf you want to provide services on the server, Enterprise Linux distributions such as CentOS or Rhel contain built-in powerful firewalls, which are strictly the default firewall rules. Therefore, if you install any custom services (such as Web servers, NFS, and Samba), then their traffic is likely to be blocked by firewall rules. So you need to open the necessary ports on the firewall to allow traffi
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.