Introduction to the Apache Web Server - ApacheCon
Introduction to the Apache Web Server - ApacheCon
Introduction to the Apache Web Server - ApacheCon
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
• help<br />
apachectl symlink<br />
You may want <strong>to</strong>:<br />
cd /usr/local/bin<br />
ln -sf /usr/local/apache/bin/apachectl ./<br />
so that apachectl is in your path. This will make life easier throughout <strong>the</strong> rest of <strong>the</strong><br />
course.<br />
3.3 httpd<br />
3.3.1 start<br />
/usr/local/apache/bin/httpd<br />
/usr/local/apache/bin/httpd -f /path/<strong>to</strong>/o<strong>the</strong>r/config.file<br />
/usr/local/apache/bin/httpd -DSSL -DO<strong>the</strong>rVar<br />
3.3.2 s<strong>to</strong>p<br />
cat /usr/local/apache/logs/httpd.pid | xargs kill<br />
killall -9 httpd<br />
rm -f /usr/local/apache/logs/httpd.pid<br />
• httpd.pid contains <strong>the</strong> PID (process ID) of <strong>the</strong> parent <strong>Apache</strong> process<br />
• Each child runs as a separate process<br />
• If you kill children first, parent relaunches <strong>the</strong>m<br />
18