Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Apache compilation and installation

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

download

[root@localhost mysql] # cd / usr/local/src/

[root@localhost src] # wget http://syslab.comsenz.com/downloads/linux/httpd-2.2.16.tar.gz

You can go to the https://github.com/aminglinux/resource/wiki link to download the package

Decompress:

[root@localhost src] # tar zxvf httpd-2.2.16.tar.gz

Configure compilation parameters:

[root@localhost src] # cd httpd-2.2.16

[root@localhost httpd-2.2.16] #. / configure\ compilation

-- prefix=/usr/local/apache2\ specify the installation directory

-- the package on which with-included-apr\ depends

-- enable-so\ means to start Dso

-- enable-deflate=shared\ means compilation in a shared way

-- enable-expires=shared\

-- enable-rewrite=shared\

-- with-pcre regular related libraries

Compile:

[root@localhost httpd-2.2.16] # make

Echo $? Check whether the compilation is successful

Installation:

[root@localhost httpd-2.2.16] # make install

Echo $? Check whether the compilation is successful

Start the apache service:

/ usr/local/apache2/bin/apachect1 start Note: if you can't get up, use the: killall hpptd command to kill the end process before restarting.

/ usr/local/apache2/bin/apachectl-l dynamic module

/ usr/local/apache2/bin/apachectl-M static module

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report