The following operations require root permissions Oh command: #/sbin/iptables-IINPUT-ptcp -- dport80-jACCEPT #/sbin/iptables-IINPUT-ptcp -- dport22-jACCEPT and then save: #/etc/rc. d/init. d/iptablessave
Command:
#/Sbin/
Iptables-I INPUT-p tcp -- dport 80-j ACCEPT
#/Sbin/iptables-I INPUT-p tcp -- dport 22-j ACCEPT
Then save:
#/Etc/rc. d/init. d/iptables save
If the above steps are not complete, it may be that the iptables file uses include call.
Ge
This indicates that port 80 (which is the Tomcat listening port) has been occupied by other programs. First, run the "netstat-ano" command to display the port status, and then find the port in the result, then, search for the corresponding program in the display of the input
This is because you want to use Navicat to connect to the database and find that the connection is notBy looking at a lot of data and testing multiple times to find out because the firewall is not configured with Port 3306Words don't say, open the whole, similarly, 80 port is also configured, first enter the firewall configuration fileshell># Vim/etc/sysconfig/ip
Vi/etc/sysconfig/iptables-A input-m state–state new-m tcp-p tcp–dport 80-j ACCEPT (allow 80 ports through the firewall)-A input-m state–state new-m tcp-p tcp–dport 3306-j ACCEPT (Allow 3306 ports through the firewall)Special Tips:Many netizens add these two rules to the last line of the firewall configuration, causing the firewall to fail to start, the correct one should be added to the default
Purpose: The integration of Apache and Tomcat allows both Java and PHP projects to share port 80. when accessing a website, you do not need to add a port number in the address bar.Environment Description: Linux CentOS 32-bitApache 2.2.2Tomcat 7.0.37Preparations: Download mod_jk.soHttp://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/Open the link an
VI/etc/sysconfig/iptables-A input-M State-State new-m tcp-p tcp-dport 80-J accept (allow port 80 to pass the firewall)-A input-M State-State new-m tcp-p tcp-dport 3306-J accept (allow port 3306 to pass the firewall)Note:Many users add these two rules to the last line of the firewall configuration, resulting in firewall
Vi/etc/sysconfig/iptables-A input-m state–state new-m tcp-p tcp–dport 80-j ACCEPT (allow 80 ports through the firewall)-A input-m state–state new-m tcp-p tcp–dport 3306-j ACCEPT (Allow 3306 ports through the firewall)Special Note: Many netizens add these two rules to the last line of the firewall configuration, causing the firewall to fail to start, the correct one should be added to the default 22
How to use the default port 80 to log on to Tomcat's http: // localhost/index. jsp page
This method is relatively simple.1. Open the server. xml file in the conf folder under tomcat.2. FindMaxthreads = "150"Minsparethreads = "25"Maxsparethreads = "75"Enablelookups = "false"Redirectport = "8443"Acceptcount = "100"DEBUG = "0"Connectiontimeout = "20000"Disableuploadtimeout = "true"/>ChangeMaxthreads = "150"Min
How to use the default 80 port to log on to Tomcat's http://localhost/index.jsp pageIt is simpler to implement such access methods.1, open Tomcat under the Conf folder in the Server.xml file2, findMaxthreads= "150"Minsparethreads= "25"maxsparethreads= "75"Enablelookups= "false"Redirectport= "8443"acceptcount= "100"debug= "0"connectiontimeout= "20000"Disableuploadtimeout= "true"/>Amended toMaxthreads= "150"M
found the third solution. In addition, this solution has been unanimously recognized by everyone in terms of feasibility, operability, efficiency, and cost saving. What is a good solution that can be unanimously recognized by everyone? Simply put, this solution enables IIS to publish the website on IIS through the Apache proxy mechanism, while the website on Apache is released through Apache itself. This may be the case, but you still don't quite und
Container Network Instance
3 port settings in the service
These port concepts are easily confusing, such as creating the following service:
APIVERSION:V1
kind:service
metadata:
Labels:
name:app1
name:app1 namespace:default
Spec:
type:nodeport
ports:
-
Port
The port that's exposed on the service '
80, IIS uses port 8081, and apache proxy forwards it to port 80.
IIS6, coexistence under multiple IP addresses, IIS is 192.168.0.1, apache is 192.168.0.2 original addressTo support/tools/Support. cab under CD 2003. Decompress the httpcfg.exe file and COPY it to the windows/
This article mainly introduces the nginx and Apache common 80 port configuration method, of course, if you want Nginx not with Apache Rob 80 port, this article also comes with the Nginx port modification method, the need for friends can refer to the next
A typical Nginx + A
A typical Nginx + Apache application can be Nginx to occupy 80 ports, filter static requests, and then dynamically request Proxy to Apache's 8080 port. The advantage of proxy reverse proxy is that when you visit, it is always 80 p
A typical Nginx + Apache application scenario can be nginx occupying 80 ports, filtering static requests, and then dynamically requesting the Proxy to the Apache 8080 port. The advantage of proxy reverse proxies is that when access is always 80
use Notepad to open the Ctrl+f search
Listen until you find listen 80, and then change 80 to the port you want to change, be careful not to change the port you have used on your computer OK, save after the change.
Then you browse the Apache server's Web page by adding http://127.0.0.1:81 to your IP (for example, you
On my server, I built a php server using apache, and some programs are running. Now I am playing with ghost and using nodejs. So the question is, how can we allow them to use port 80 together. SF has an article above: segmentfault. comq100000000702092, but not... on my server, I built a php server using apache, and some programs are running. Now I am playing with ghost and using nodejs. So the question is,
A typical Nginx + Apache application can be Nginx to occupy 80 ports, filter static requests, and then dynamically request Proxy to Apache's 8080 port. The advantage of proxy reverse proxy is that when you visit, it is always 80 p
from:http://blog.csdn.net/luckykapok918/article/details/44461465
Nginx through 80-port reverse proxy to Tomcat implementation is very simple, through the JSP Request.getserverport () get to the port number is still 80, And if nginx using a non-
Development is based on Node. js WEB applications are very convenient, but the service port is very painful. Because Linux kernel requires that common users only use port numbers greater than 1024, so common users can run Node. the js service cannot listen to port 80. Note: Do not use the ROOT user to run Node. js serv
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.