Configure Apache 80 o'clock ports to be occupied

Source: Internet
Author: User

Because the previously configured nginx,80 port is occupied, the HTTP error will be started!

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/88/FE/wKioL1gEgaLjb1FYAAA18XKHaio956.png-wh_500x0-wm_3 -wmp_4-s_1381049246.png "title=" qq picture 20161017154450.png "alt=" Wkiol1gegaljb1fyaaa18xkhaio956.png-wh_50 "/>


See what programs are occupied with port 80

Netstat-noap | grep 80 | grep TCP

Check to be the Nginx program occupies the port, kill with the kill command, but found that using kill kill after automatically restart the next

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/89/01/wKiom1gEhHqhR0sVAAAXno3pV7U193.png "title=" QQ picture 20161017154646.png "alt=" Wkiom1gehhqhr0svaaaxno3pv7u193.png "/>


Pgrep-l nginx view pid and kill with Kill

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/88/FE/wKioL1gEhBbiEQthAAANZo14dlE279.png "title=" QQ picture 20161017155516.png "alt=" Wkiol1gehbbieqthaaanzo14dle279.png "/>

Here you can see that Nginx has been killed.



Restart with service httpd restart


650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/88/FE/wKioL1gEhFyT4FNSAAAbMS6bp60218.png "title=" QQ picture 20161017155642.png "alt=" Wkiol1gehfyt4fnsaaabms6bp60218.png "/>


This article is from the "CENTOS6 use Xtrabackup" blog, be sure to keep this source http://9052426.blog.51cto.com/9042426/1862725

Configure Apache 80 o'clock ports to be occupied

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.