欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

Install Apache 2 from Source on Linux

系統 1929 0

From http://www.thegeekstuff.com/2008/07/install-apache-2-from-source-on-linux/

All Linux distributions comes with Apache. However, it is recommended to download latest Apache source code, compile and install on Linux. This will make it easier to upgrade Apache on a ongoing basis immediately after a new patch or release is available for download from Apache. This article explains how to install Apache2 from source on Linux.

1. Download Apache

Download the latest version from Apache HTTP Server Project . Current stable release of Apache is 2.2.9. Move the source to /usr/local/src and extract it as shown below.

    # cd /usr/local/src

# gzip -d httpd-2.2.9.tar.gz

# tar xvf httpd-2.2.9.tar
  

2. Install Apache

View all configuration options available for Apache using ./configure –help (two hyphen in front of help). The most commonly used option is –prefix={install-dir-name} to install Apache on a user defined directory.

    # cd httpd-2.2.9

# ./configure --help
  

In the following example, Apache will be compiled and installed to the default location /usr/local/apache2 with the DSO capability. Using the –enable-so option, you can load modules to Apache at runtime via the Dynamic Shared Object (DSO) mechanism, rather than requiring a recompilation.

    # ./configure --enable-so

# make

# make install
  

Note : During the ./configure, you may get the following error message.

    # ./configure --enable-so

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details.

configure failed for srclib/apr
  

Install the gcc and the dependent modules as shown below and try ./configure again to fix the above issue.

    # rpm -ivh gcc-4.1.2-14.el5.i386.rpm glibc-devel-2.5-18.i386.rpm glibc-headers-2.5-18.i38

6.rpm kernel-headers-2.6.18-53.el5.i386.rpm

Preparing...                ########################################### [100%]

1:kernel-headers         ########################################### [ 25%]

2:glibc-headers          ########################################### [ 50%]

3:glibc-devel            ########################################### [ 75%]

4:gcc                    ########################################### [100%]
  

3. Start Apache and verify installation

    # cd /usr/local/apache2/bin

# ./apachectl start
  

Go to http://local-host, which should display the default message “It Works!”

4. Start Apache automatically during system startup

Modify the /etc/rc.d/init.d/httpd script and change apachectl and httpd variable to point to the appropriate new location as shown below. Please note that this httpd script was originally installed as part of the default Apache from the Linux distribution.

    apachectl=/usr/local/apache2/bin/apachectl

httpd=${HTTPD-/usr/local/apache2/bin/httpd}
  

Now, you can perform the following to stop and start the Apache

    # service httpd stop

# service httpd start
  

Setup the Apache to automatically startup during reboot as shown below.

    # chkconfig --list httpd

httpd           0:off   1:off   2:off   3:off   4:off   5:off   6:off

# chkconfig --level 2345 httpd on

# chkconfig --list httpd

httpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off
  

Install Apache 2 from Source on Linux


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦?。。?/p>

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 黄视频在线观看网站 | 婷婷在线观看网站 | 777奇米视频 | 亚洲欧美自拍另类图片色 | 欧美一区二区黄色片 | 欧美日韩国产手机在线观看视频 | 色欲天天婬色婬香视频综合网 | 亚洲精品黄色 | www.91成人| 日韩高清不卡 | 国产精品秒播无毒不卡 | 成年免费视频 | 亚洲欧美日韩精品久久奇米色影视 | 天堂在线www网亚洲 欧美 日韩 | 成人嘿嘿视频网站在线 | 夜夜操夜夜骑 | 无码国产精品成人午夜视频 | 欧美成人a∨高清免费观看 久久亚洲欧美日韩精品专区 | 中国免费一级毛片 | 浮力影院最新地址 | 日韩福利在线 | 日韩a在线观看 | 91免费公开视频 | 国内精品一区二区 | 亚洲成人综合视频 | 久久精品亚洲 | 国产精品99久久久久 | 欧美性色综合网 | 国产成人精品视频免费 | 夜婷婷| 亚洲一区二区三区免费在线观看 | 国产午夜福利视频一区二区32页 | 欧美视频在线免费播放 | 久久精品国产一区二区三区不卡 | 久久久久久久久淑女av国产精品 | 欧美在线视频一区二区 | 一区二区三区四区在线观看视频 | 欧美性生活久久 | 高清人人天天夜夜曰狠狠狠狠 | 国产色婷婷亚洲99精品小说 | 奇米777视频国产 |