Compile and install under Linux Apache2 (2)

Source: Internet
Author: User


\subsection{service}



After you set up servername in/usr/local/apache2/conf/httpd.conf, you can then use Apachectl to start httpd.


\begin{lstlisting}[language=bash]

$ sudo/usr/local/apache2/bin/apachectl Start

$ ps aux | grep httpd

Root 1001 0.0 0.0 71280 3700? Ss 00:18 0:00/usr/local/apache2/bin/httpd-k Start

Daemon 1002 0.0 0.1 427868 4100? Sl 00:18 0:00/usr/local/apache2/bin/httpd-k Start

Daemon 1003 0.0 0.0 427868 3852? Sl 00:18 0:00/usr/local/apache2/bin/httpd-k Start

Daemon 1004 0.0 0.0 427868 3852? Sl 00:18 0:00/usr/local/apache2/bin/httpd-k Start

Daemon 1089 0.0 0.0 427868 3856? Sl 00:18 0:00/usr/local/apache2/bin/httpd-k Start

Test 1120 0.0 0.0 113000 2304 pts/1 s+ 00:20 0:00 grep--color=auto httpd

\end{lstlisting}



Modify the httpd.conf and add the new Apache user and user groups:



\begin{lstlisting}[language=bash]

$ sudo useradd Apache

$ sudo groupadd Apache

$ sudo/usr/local/apache2/bin/apachectl Stop

$ ps aux | grep httpd

$ sudo/usr/local/apache2/bin/apachectl Start

$ ps aux | grep httpd

\end{lstlisting}


Compile and install under Linux Apache2 (2)

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.