wiflish
          Loving Life! Loving Coding!
          posts - 98,comments - 98,trackbacks - 0

          參考:http://www.extmail.org/forum/archive/2/0510/563.html

          下載Apache 2.0.59的源代碼:http://www.apache.org/dist/httpd/
          增加Apache運行所需的用戶和組:
          groupadd httpd
          useradd httpd -g httpd -c "Apache user" -d /nonexistent -s /sbin/nologin

          安裝Apache,Apache將被安裝在"/usr/local/apache2"目錄下:

          tar zxvf httpd-2.0.59.tar.gz
          cd httpd-2.0.59

          ./configure --prefix=/usr/local/apache2 --enable-so --enable-ssl --with-mpm=worker --enable-rewrite --enable-suexec --with-suexec-caller=httpd \
          CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"

          make
          make install

          修改apache的配置文件(/usr/local/apache2/conf/httpd.conf),配置apache的默認語言、運行用戶等參數(shù):
          User httpd
          Group httpd
          <IfModule worker.c>
          StartServers???? 10
          MaxClients?????? 1024
          MinSpareThreads?? 100
          MaxSpareThreads?? 800
          ThreadsPerChild?? 64
          MaxRequestsPerChild 0
          </IfModule>
          在"/etc/rc.local"文件中增加"/usr/local/apache2/bin/apachectl start",設(shè)置Apache開機自動運行。

          posted on 2006-11-30 15:24 想飛的魚 閱讀(266) 評論(0)  編輯  收藏 所屬分類: linux
          主站蜘蛛池模板: 广河县| 肥西县| 铁岭市| 贺州市| 浮山县| 梁平县| 新乐市| 和林格尔县| 尚志市| 上栗县| 上蔡县| 长泰县| 长乐市| 如皋市| 大名县| 大洼县| 乌恰县| 北碚区| 钟祥市| 富阳市| 囊谦县| 宣汉县| 绍兴市| 罗平县| 安陆市| 苍山县| 苏尼特左旗| 木里| 正阳县| 池州市| 南溪县| 游戏| 阳西县| 清涧县| 黑河市| 南靖县| 江西省| 民县| 博白县| 南充市| 米易县|