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

  • 站長資訊網
    最全最豐富的資訊網站

    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

    復制初始化文件并將Apache設置為啟動

    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服務

    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)
    網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號