Install Apache 2
Apache2 is a centos software package, so we can directly install it using the following command:
Yum install httpd
Now configure the system to start Apache at boot
Chkconfig -- levels 235 httpd on
And start Apache
/Etc/init. d/httpd start
Now, go to http: // 192.168.0.100 in your browser and you should see the test page of apache2:
Apache 2 test webpage
Apache's default document root directory is on centos/Var/www
The. net program in IIS is bound to port 81 with the Host Name www.a.com.
The apache php program is bound to port 80 with the Host Name www. B .com.
Then, assuming that the apache server has been installed successfully, open the httpd. conf configuration file and find the following places to remove # enable the proxy
, even if it is successful, http: // domain name .ngrok.sapronlee.com is the domain name used to access your local machine from the Internet,
Note: Do not turn off dos when using it. If it is turned off, it will be invalid.
Now, you can use this domain name to access the local machine. When you configure a local website on iis, a program developed by asp.net is directly released to the local iis, and port
Deploying Web Apps (80 ports) under Windows, prompting for BIND 80 port failure on startupCheck Port occupancy:0.0. 0.0:Discovery of System process (pid=4) consuming portsHowever, this machine does not have IIS installed, so troubleshoot the IIS service. How to solverun cmd as AdministratorNet Stop
Objective:
Combining Apache and Tomcat enables both Java Engineering and PHP engineering to share 80 ports, and when you visit a Web site, you don't need to add a port number to the address bar.
Environment Description:
Linux CentOS 32-bit
Apache 2.2.2
Tomcat 7.0.37
preparatory work:
Download mod_jk.so
http://archive.apache.org/dist/tomcat/tomcat-connector
Generally, when implementing projects, customers want domain names and addresses to be simple and clear. But OHS is not allowed to use the port number less than 1024 for security reasons, less than 1024 port number is root, and common OHS have their own installation user (Oracle). So if you want to use a port less than 1024, you need to modify the. Apachectl cont
Always use virtual machine to use web+hostonly mode;To test the window System compatibility for a PHP platform today,In the official download Window-nginx 1.9.1 version;Unzip to the directory,Run Nginx.exeAccess 127.0.0.1 normal;Then modify the nginx.conf to replace the inside of the server{} with the include./vhost/*.conf;Build the Vhost directory under the Conf directory and copy a site's server conf file from CentOS, and modify the directory that the root points to. Save;Use nginx.exe-t test
1 run ' Netstat-ano ' Discovery 80 port is occupied by pid=4 process
2 Open Task Manager, Discover pid=4 process, actually is system process, its corresponding process description is NT Kernel system.
3 How do I clear it? Need to use registry, start-"regedit, open
4 HKEY_LOCAL_MACHINE Directory found
5 Locate System
6 found Currentcontrolset-services
7 Find Http
For example, modify to 8088 port and d:/workphp directory.
Modified to Port 8088
Left-tray icon, in the "Apache" can directly open httpd.conf, find "Listen 80", can be changed to other ports, I choose 8088.
Restart the Wamp, it will be effective. But "Localhost", "phpMyAdmin", "Sqlitemanager", you can click to open to see still the default
modules/mod_proxy_ftp.so2. Cancel the httpd.confInclude the comments in front of conf/extra/httpd-vhosts.conf so that the Apache host configuration will use the httpd-vhosts.conf file.3. Open httpd-vhosts.conf, add the following code, bind the directory D:/wwwroot/weimeng to the domain name www.***.com, and set the default home page and access permissions.DocumentRoot "D:/wwwroot/weimeng"ServerName www.***.comOptions followsymlinks includesnoexec IndexesDirectoryIndex index.php default.phpAllow
1. Go to cmd and use the netstat command to view the specified portNetstat-ano | Findstr:802, as shown below: Local 80 port is occupied by process 4TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 43, enter the tasklist instruction, view the PID 4 process name, the process is System4, Win+r, enter regedit, open the registryLocate the following path: ' Hkey_local_machine\system
Centos7 configure iptables to open port 80
Centos7 uses firewalld to manage the firewall by default.
After centos7 is installed, the nginx server is installed, but the same LAN cannot be accessed. My brother told me that the Firewall should be enabled. Turn off the firewall.
Give a decisive try.
However, each firewall is always self-starting.
Then, my brother told me two options: either use firewalld f
Monitoring website 80 Ports
Many times we do not know whether the site 80 port is normal, of course, my previous Shell monitoring site status (continued) This article can also monitor the site, here is just to provide you with another way to monitor the site.
Script content:
The code is as follows
Copy Code
VI check-
Phpiis
Since IIS on my server already exists several sites that are running and have different domain names bound, I would like to use the Zen channel also deployed on IIS 80 port, I downloaded the source code according to the official website of the tutorial installation, visit http://localhost/www/index.php reported the following error. Excuse me, what's g
Background:Today at home computer Download Phpstudy 2016, ready to start the server, the results prompt 80 port is occupiedProcess:After Baidu has these several solutions:1. IIS occupies2 , SQL Server the Reporting Services occupyUnfortunately, neither of these methods has been tried.Workaround: 1. Open the Registration form: regedit2 , find: hkey_local_machine\system\currentcontrolset\services\http3 , fin
Window nginx has no error at startup, but does not have listen port 80, nginxlisten
Always use virtual machines to use web + hostonly;
To test the window system compatibility of a php platform today,
Download Windows-nginx 1.9.1 from the official website;
Decompress the package to the directory,
Run nginx.exe
Access 127.0.0.1 is normal;
Modify nginx. conf and replace all servers {} in it with include./vhost
Today, the port of the Tomcat server has been changed to 80 because of the engineering needs, but the start-up is problematic.Found the error message is the port occupied, so I immediately in the command line typed Netstat-ano view port occupancyFinally found that the PID is 4 of the process occupies
0. PrefaceNC is a good tool for both ends of the network connection, but also a temporary port forwarding. (What is the permanent port forwarding?) With Iptables)SSH is also a good tool in this area, the advantage is that encryption is reliable reusable at one end of the operation, at the cost of having a login account.We know that SSH automatically encrypts and decrypts all network data between the SSH cli
One, Introduction
Windows server is a self-contained firewall that can filter some packages. In general, to open the firewall for security, you can prevent some attack behavior.
Of course, when the firewall is enabled, all ports are closed, and the computer simply does not accept external connection requests to the port and cannot provide services externally. (Local access, such as using a browser to browse the Web is not affected, the firewall is t
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.