亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長(zhǎng)資訊網(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è)置為啟動(dòng)

    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)建一個(gè)符號(hào)鏈接

    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

    啟動(dòng)/停止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查找啟動(dòng)的進(jìn)程

    pgrep httpd

    CentOS下源代碼編譯和安裝Apache

    Apache配置文件

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

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