Linux 指令碼編譯安裝http 2 4 27版本

2021-10-08 22:41:02 字數 2938 閱讀 6373

執行指令碼前請將國內的比較快的基礎源和epel源配置好,剩下就不用管了,執行指令碼,半個小時左右自動編譯安裝完,並且大部分功能都已編譯進去。絕對的懶人福利。適用系統為centos7和redhat7系列,下面上指令碼原始碼:

記錄一下隱藏apache-httpd的版本號方法:修改原始碼包內的include目錄下的ap_release.**件, 開啟該檔案將40行到47行的值修改為自己想要顯示的值。

儲存後,重新編譯,編譯完成後,修改httpd的主配置檔案,httpd.conf,找到

包含httpd-default.conf的行,並解開注釋。

vim /etc/httpd/extra/httpd-default.conf,開啟這個檔案

55 servertokens full

65 serversignature on

為:

servertokens prod

serversignature off

重啟httpd服務,使用curl命令測試

curl -i 當前ip/index.html

linux原始碼編譯安裝http服務

1 關閉selinux功能 root localhost httpd24 2 關閉防火牆 root localhost httpd24 systemctl disable firewalld 安裝環境的開發工具 root localhost httpd24 yum grouplist 查詢 root...

linux 編譯makefile指令碼

下面是c編譯指令碼 name yuv connect dir inc include dir src src dir obj output obj dir bin output bin cc gcc cc g debug flag dbg enable 0 include i dir inc deb...

snort IPS 模式編譯安裝(指令碼)

目錄 snort ips 模式編譯安裝 指令碼 編譯安裝 配置 啟動 測試 作業系統 centos7.5.1804 使用者 root 指令碼如下。configure enable sourcefire make make install至此安裝完畢。需要對snort進行配置。snort的配置目錄結構...