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:
Recently, when building a CentOS service, found that 22 ports are always unavailable, and Windows Telnet 22 port is not available, under CentOS NETSTAT-LNPT Check Port 22 is not listening, so the online search solution, but none can solve.Now gradually resolved.
One, iptables add 22 ports1. If you want to open the 22,80,8080 port, enter the following command/sbin/iptables-i input-p tcp–dport 80-j ACCEPT/sbin/iptables-i input-p tcp–dport 22-j ACCEPT/s
Web.config file. This property specifies the server on which the service resides and the ports to monitor:
Stateconnectionstring= "tcpip=myserver:42424"Cookieless= "false" timeout= "/>"
In this example, the State service runs on a 42424 port (the default port) of a machine named MyServer. To change ports on the server, edit the port value in the Hkey_local_machine\system\currentcontrolset\services\aspnet
One, how to view the port of your own process.
1. View PID
In Task Manager, select View \ column, and in the Columns tab, put the PID number on it and you'll see the PID number of the process in Task Manager.
2 find port number by PID
Enter Netstat-ano in cmdYou can find the PID number for the port and the application
Second, how to view the specified port is occupied.
If we need to determine who's taking up our 9050 port,
1. Windows platform
Execute under Windows command-line window:
C:\>netst
Tags: problem occupies net OID environment variable nbsp Port task managementDo you often encounter the use of ADB ports when doing Android development?The solution to this problem is simple, just set up a system environment variable to get it done.Setup method:Add system environment variable variable name: Adnroid_adb_server_portVariable Value: 8888 (You can set the port number according to your preference, it is recommended to set the large point of
SQL Publishing subscriptions, presumably everyone knows, but generally in the default of 1433 of the case, then 1433 for other ports, the release can still work properly?I met in a real customer scene.Well, don't want to write too much today, to simplify the test environmentPublisher Computer name win-01Distributor Computer name Win-01 (same as the one used for publishing)Subscriber Computer name win-02The test library used is YYIn the default port 14
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.