Netstat This command is commonly used in network monitoring. With this command, you can view the current system listening services and established services, as well as the corresponding ports, protocols and other information.Netstat parameter descriptionNetstat parameters, although a lot, but often not much, mainly the following several parameters:Netstat-[ATUNLP]
-a:all, indicating that all connections, service monitoring, socket data are liste
TCP: Transmission Control Protocol SYN: Request signal ACK: controlled command for acknowledgmentUDP: User Datagram ProtocolUDP belongs to a TIP/IP protocol family1. Turn on network port statusNetstat is a console command and is a very useful tool for monitoring TCP/IP networks, which can display routing tables, actual network connections, and status information for each network interface device. The netstat is used to display statistics related to IP, TCP, UDP, and ICMP protocols, and is typica
Netstat This command is commonly used in network monitoring. With this command, you can view the current system listening services and established services, as well as the corresponding ports, protocols and other information.Netstat parameter descriptionNetstat parameters, although a lot, but often not much, mainly the following several parameters:Netstat-[ATUNLP]
-a:all, indicating all connections, service listening, socket data
-t:tcp,
Before I was busy setting up the environment, I didn't have time to write it, now fill it up.On Linux, when we use the one-click installation package to build the environment, the firewall automatically releases. For example, sometimes it is convenient to use tools to remotely connect to Redis for the time being.Obviously the environment has been set up, the corresponding changes in the configuration is not even, at this time, we should see if our firewall released noView status: Iptables-l-NOpe
copy redis.conf named Redis6380.conf, and edit the configuration filecp/etc/redis/redis.conf/etc/redis/redis6380.confvi/etc/redis/redis6380.confSeveral parameters need to be modifiedpidfile//run/redis/redis6380-~//log/redis/redis6380-~Then save it and start the configuration file directly.redis-server/etc/redis/redis6380.confWe can view the next processpsauxf|grepredis-serverThe discovery did start with two Redis ports, but the two Redis process user
Netstat-tln The meaning behind the netstat · Proto shows the protocol used by the connection.· REFCNT represents the process number that is connected to this set of interfaces.· Types shows the type of the socket interface.· State displays the current status of the socket interface.· Path indicates the pathname used by other processes connected to the socket The NETSTAT-TLN command is used to view the port usage of Linux. NETSTAT-A View all service ports
View Status:Iptables-l-NAdd the following methods for opening a specific port:Use Iptables to open the following ports/sbin/iptables-i input-p TCP--dport 8000-j ACCEPTSave/etc/rc.d/init.d/iptables SaveRestart ServiceService Iptables RestartSee if the port you want to open takes effect?/etc/init.d/iptables statusAct 2:or edit/etc/sysconfig/iptables directly-A input-p tcp-m tcp--dport 4000-j ACCEPTSave in the previous sectionReboot again:Service Iptable
Modify SSH ports and disable root remote login settings in Linux
View the system version below[Email protected] ~]# cat/etc/redhat-releaseCentOS Release 6.7 (Final)
Modifying a configuration fileLinux Modify Portvim /etc/ssh/sshd_configFind #portRemove the previous # and then modify port 1234650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9B/AE/wKiom1ll2nOBTfZVAAANOYt0oEw047.png "title=" 11. PNG "alt=" Wkiom1ll2nobtfzvaaanoyt0oew047.
'
try
: from oscore import setting #导入配置文件 if Setting.status = = ' online ': #如果配置中是线上的, the program is running in the background daemonize () excep T exception:pass app = Default_app () app = Sessionmiddleware (app, session_opts) # Sessionmiddleware is session plugin run (app=app,host= ' 0.0.0.0 ', port=portnum,server= ' gevent ')
Best, with Nginx proxy to load these ports,
Modify SSH ports and disable root telnet under LinuxAs we all know, SSH default port number is 22, to change the port number is 9688, need to edit/etc/ssh/ssh_config and/etc/ssh/sshd_config two files can;To disable root login, you need to edit the/etc/ssh/sshd_config. (Some Linux directories may be/etc/sshd, please modify according to the actual situation)The procedure is as follows:1. Edit the/etc/ssh/ssh_config file:[Email protected] ~]# cat/etc/ssh
Installed TOMCAT7, found in addition to the function of access to the outside world, outrageous. So ask Baidu God, after a lot of trouble, the summary steps are as follows:1. Modify the file/etc/sysconfig/iptables[Email protected] ~]# cd/etc/sysconfig/[Email protected] sysconfig]# VI iptablesThe contents of the file are as follows, note that the red line is newly added to open 8080 ports to the outside world.# Firewall configuration written by System-
; "src=" http://s3.51cto.com/wyfs02/M00/53/AE/wKioL1RtnGzCZIlUAAPJlGJgxz8483.jpg "style=" float: none; "title=" Image 68.png "alt=" Wkiol1rtngzcziluaapjlgjgxz8483.jpg "/>Conclusion: Auto-discovery can monitor the server port very well, when the new port is opened, it will scan itself, do not need to care for the person, it is recommended to disable the non-important trigger, otherwise it will be alerted frequently, and some ports will be in a meeting.
Each peripheral is controlled by a read-write register, and the access addresses are contiguous. The program accesses the external device (ISA device, PCI device), either through the I/O port or I/O memory. ISA devices generally use I/O ports, while most PCI devices map registers to a memory address segment.Request I/O port through function request_region, operation on I/O port has special instruction function, INB, INW, INL, Outb, OUTW and OutlReques
View Status:Iptables-l-NAdd the following methods for opening a specific port:Use Iptables to open the following ports/sbin/iptables-i input-p TCP--dport 8000-j ACCEPTSave/etc/rc.d/init.d/iptables SaveRestart ServiceService Iptables RestartSee if the port you want to open takes effect?/etc/init.d/iptables statusAct 2:or edit/etc/sysconfig/iptables directly-A input-p tcp-m tcp--dport 4000-j ACCEPTSave in the previous sectionReboot again:Service Iptable
xinted mode is also known as the Internet super-server (super server) compared to the stand-alone mode. XINETD can listen to multiple specified ports at the same time, when accepting user requests, he can initiate different network service processes to handle these user requests depending on the port requested by the user. You can think of xinetd as a Management server that manages the startup service, decides to hand over a client request to that pr
suppress IPv4 mapped when compiling httpd, --disable-v4-mapped by default httpd will listen to IPv4 and IPv6, instead of just listening to IPv6, as follows:1 grep :2 tcp 0 00.0. 0.0: 0.0. 0.0:* LISTEN 40576/httpd3 tcp6 0 0 :::+ :::* LISTEN 40576/httpdInstead, if you /etc/httpd/conf/httpd.conf Listen set it to only listen for the IPv6 address, the following:1 Listen:::Then, you will see that netsta
Reprint: http://blog.csdn.net/xinxin19881112/article/details/6148507
Problem Description:
Start Tomcat Server error:
Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are. The server may already is running in another process, or a system process may is using the port. To start this server you'll need to stop the other process or change the port number (s).Reason:
Port 8005, 8080, 8009 are occupied. It is possible that eclip
Cisco switch in the VLAN how to add multiple ports at a time, this is usually used in the process of our configuration, because if one of the add port, the workload will be very large, so need to add multiple ports at once, the following by the small set of specific operations to introduce
1, first through the Consolo port or telnet to connect the switch to enter the user mode "", as shown in the picture:
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.