欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          CentOS下源代碼編譯和安裝Apache

          如何從CentOS中源碼編譯和安裝Apache

          1、下載最新的Apache版本

          wget http://mirror.downloadvn.com/apache//httpd/httpd-2.4.41.tar.gz

          2、安裝軟件包

          yum install apr* gcc

          3、編譯安裝

          tar -zxvf httpd-2.4.41.tar.gz
          cd httpd-2.4.41
          ./configure –prefix=/usr/local/apache –enable-vhost-alias –enable-rewrite –enable-info
          make
          make install

          復(fù)制初始化文件并將Apache設(shè)置為啟動

          cp build/rpm/httpd.init /etc/init.d/httpd
          chmod 755 /etc/init.d/httpd
          chkconfig –add httpd
          chkconfig –level 35 httpd on

          創(chuàng)建一個符號鏈接

          ln -s /usr/local/apache/ httpd
          cd /usr/sbin/
          ln -fs /usr/local/apache/bin/httpd
          ln -fs /usr/local/apache/bin/apachectl
          cd /var/log
          rm -rf httpd/
          /etc/init.d/httpd start

          啟動/停止httpd服務(wù)

          service httpd restart
          service httpd start
          /usr/local/apache/bin/apachectl start
          /usr/local/apache/bin/apachectl stop
          /usr/local/apache/bin/apachectl status
          /etc/init.d/httpd start
          /etc/init.d/httpd stop
          /etc/init.d/httpd restart

          使用pgrep查找啟動的進程

          pgrep httpd

          CentOS下源代碼編譯和安裝Apache

          Apache配置文件

          vi /usr/local/apache/conf/httpd.conf

          贊(0)
          分享到: 更多 (0)
          網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號