Linux under Apache Start, stop, restart command

Source: Internet
Author: User

Original: Linux under Apache start, stop, restart command

Basic method of Operation:
This article assumes that your APAHCE installation directory is/usr/local/apache2 and that these methods are suitable for any situation

Apahce Start command:
Recommended/usr/local/apache2/bin/apachectl Start APACEH startup

Apache Stop Command
/usr/local/apache2/bin/apachectlstop Stop

Apache Restart command:
/usr/local/apache2/bin/apachectl Restart Restart

To restart the Apache server without interrupting the current connection, you should run:

/usr/local/sbin/apachectl Graceful

If Apache is installed as a Linux service, you can do this with the following command:

Service httpd Start

Service httpd Restart Restart

Service httpd Stop Services


Linux System for Ubuntu

First, start Apache 2 server/start Apache Service

#/etc/init.d/apache2 Start
Or
$ sudo/etc/init.d/apache2 Start

Second, Restart Apache 2 server/restart Apache Service

#/etc/init.d/apache2 Restart
Or
$ sudo/etc/init.d/apache2 Restart

Third, stop Apache 2 server/stops Apache service

#/etc/init.d/apache2 Stop
Or
$ sudo/etc/init.d/apache2 Stop



Linux under Apache Start, stop, restart command

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.