Example:The steps to open port 10000 are as follows:1, modify the/etc/sysconfig/iptables file, add the following line:-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 10000-j ACCEPTRestart IptablesService Iptables Restart 2, restart the firewall, there are two ways to restart the firewall a) restart after the effectiveOpen: Chkconfig iptables onOFF: chkconfig iptables off B) immediate effect, fail after rebootOpen: Service iptables startClose: Service iptables stop3, or with Menu-sys
if more than one deployment is deployed on a single machineJBossserver, you need to modify the relevant ports to avoid port conflicts. Currently confirm that the configuration needs to be modified as followsFirst,VI $JBOSS _home/server/default/conf/JBoss-service.xml1. WebService PortJBoss. Web. WebService "name= "JBoss: Service=webservice ">2. Jndi Port:JBoss. naming. Namingservice "name= "JBoss: service=naming "xmbean-dd= "Resource:xmdesc/namingservi
This article mainly describes the Linux under the Iptables only allow the specified IP address to access the specified port setting method, the need for friends can refer to.First, clear all pre-settingsSecond, the settings allow only the specified IP address to access the specified portIptables-a input-s xxx.xxx.xxx.xxx-p tcp--dport3306Above two, note that the--dport is the target port, when the data goes from the external to the server as the destination port, whereas the data goes out from th
= "Wkiol1bc3gvsgrk3aaaxogc7-be056.png"/>1. View the corresponding IP via MAC addressRun Show ARP | Include Mac_address650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7C/F1/wKioL1bdF7bjyfugAAANVIzMq9E942.png "title=" Qq20160307135242.png "alt=" Wkiol1bdf7bjyfugaaanvizmq9e942.png "/>The timeout cleanup time for Arp and Mac two tables is not the same. Use Switch#clear Arp-cache to clear the ARP information table, use Switch#show interfaces gigabitethernet 0/11 to view ARP refresh time ar
.home} Log4j.appender.a.file=${catalina1.home}/logs/gyl_log/purepro_
5, make the corresponding changes
Startup Tomcat,webapps directory and WEBAPPS1 directory application will be started, can be based on different ports to access the inside of the project; Assuming the project name is MyApp, for the above changes we can use the following address to access: http://localhost : 8080/myapp or HTTP://LOCALHOST:8090/MYAPP.
Summarize
The above is the
1, prohibit the root user login ssh
The code is as follows:
#vi/etc/ssh/sshd_config
Put
The code is as follows:
Permitrootlogin Yes
To
The code is as follows:
Permitrootlogin No
Restart the sshd service
The code is as follows:
#service sshd Restart
Using root login At this point will be prompted to reject:
The code is as follows:
Login As:root
Root@192.168.8.1
After installing Tomcat on Linux, the client input address HTTP://IP address is inaccessible and port 80 cannot be accessed.Because Linux firewall is turned off by default, Port 80. Therefore, to be able to access port 80, you can use two ways, one is to turn off the firewall, and the other is to let the firewall open 80 ports.The steps to open port 80 are as follows:1, modify the/etc/sysconfig/iptables file, add the following line:-A input-m state--state new-m tcp-p TCP--dport 80-j ACCEPTRestar
This article mainly introduces the C # detection port is occupied by a simple example, the need for friends can refer to when we want to create a TCP/IP Server connection, we need a range of 1000 to 65535 ports. nbsp; But a port on this machine can only be monitored by one program, so we need to detect if the port is occupied when we listen locally. nbsp; Namespace System.Net.NetworkInformation defines a class called ipglobalproperties, which we use t
View port occupancy under Linux:
1.
To see which process is taking up 819 ports:
Case9-sghfofo:/usr/local/cnbj/tomcat-bj/bin # lsof-i:859
Results after run:
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
Java 24907 root 31u IPv4 248905027 TCP *:859 (LISTEN)
We know from the above that the 859 port is occupied by the process number 24907 process and is a Java process.
2.
To see where the process number 24907 is:
Case9-sghfofo:/usr/local/cnbj/tomcat
Copy Code code as follows:
@echo off
Color 1f
Title XP Port-Process query
Setlocal enabledelayedexpansion
echo╔--╗
Echo native open ports and processes that use this port
echo╚--╝
Echo------------------------------------
Echo Port number Process name
ECHO TCP protocol:
:: Use the netstat command to find the port that uses TCP protocol communication, and divide the result;
:: Pass the second parameter (IP plus port) to%%i, and the fifth
Sometimes you need to view a process in Linux that uses that port, but only the approximate name of the process, such as to see which port the Namenode of Hadoop runs on, to connect in eclipse. One method is as follows, may compare rubs, please the advice of Daniel.
First view the ID of the process with the PS command: $ ps-ef | The second field in the grep Name where each row (which takes up a number of rows for a long time) is the ID of the process.
Of course, for processes running in a Ja
Modify the HTTP service Port find the Jboss-as-7.1.1.final/standalone/configuration/standalone.xml file and find line No. 298, as shown below: If we want to change to 80 ports, Obviously only need to change port= "8080" to port= "80" and restart JBoss.
revoke access Restrictions by default, JBoss allows only local (intranet) IP addresses to access its HTTP service. Open the Jboss-as-7.1.1.final/standalone/configuration/standalone.xml file and locate
] [-S] [-t] [-v] [interval]
-a displays all connections and listening ports.
-B displays included in the creation of each connection or listening port
Executable component. In some cases, the executable component is known
has multiple independent components, and in these cases
Sequence of components included in creating a connection or listening port
Be displayed. In this case, the executable component name
At the bottom of [], the top part is the com
Several ports (8005, 8080, 8009) required by Tomcat v8.0 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).
This error occurs when Eclipse runs the Web because you have already opened Tomcat on the outside through Starup.bat, while running in eclipse once again opens Tomcat through the se
=ftp--permanent # #永久开放ftp服务Firewall-cmd--remove-service=ftp--permanent # #永久移除ftp服务Firewall-cmd--add-port=80/tcp--permanent # #永久添加80端口Iptables-l-N # #查看规则, this command is the same as IptablesMan Firewall-cmd # #查看帮助
more commands, using firewall-cmd--help to view Help files
>>> CentOS 7.0 uses firewall as a firewall by default, and iptables must be reset1, directly shut down the firewallSystemctl Stop Firewalld.service #停止firewallSystemctl Disable Firewalld.service #禁止firewall开机启动
2, set i
FreeBSD version is 7.3,mysql version is 5.0.90,apache version is 2.2.14 (1.3.42), PHP version is 5.2.12. The order of my installation is MySQL first, then install Apache and PHP, is usually installed to complete a and test after the installation of the next, so easy to find the problem.
One. Installing MySQL
The code is as follows
Copy Code
cd/usr/ports/databases/mysql50-server/Make With_xcharset=all//default support for
simple answer?
Here is an article I refer to:
By default, the Apache server is installed with port 80, and Tomcat uses 8080 ports, and when both are installed on one server, you want to access the JSP page provided by Tomcat, plus the following domain name: 8080, which I don't like.
The following is a simple setup that uses port 80 to access both the PHP and Tomcat-provided JSP provided by Apache. Description: The following assumes that the Apache an
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.