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)

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.