\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)