httpd: apr_sockaddr_info_get() failed for bogon
今天在測試apache安裝,啟動的時候報錯:
[root@bogon bin]# ./apachectl start
httpd: apr_sockaddr_info_get() failed for bogon
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd: apr_sockaddr_info_get() failed for bogon
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
這是因為主機名為bogon,因為不想去修改/etc/resolved.con檔案,所以直接修改了apache的配置檔案。
用記事本開啟httpd.conf,將裡面的#ServerName 前的註釋去掉即可。
再執行./apachectl start。然後可以透過瀏覽器訪問http://192.168.56.130:80,如果頁面顯示“It works!”,即表示apache已安裝並啟動成功。
用記事本開啟httpd.conf,將裡面的#ServerName 前的註釋去掉即可。
再執行./apachectl start。然後可以透過瀏覽器訪問http://192.168.56.130:80,如果頁面顯示“It works!”,即表示apache已安裝並啟動成功。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/751371/viewspace-720034/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Centos httpd模組 Job for httpd.service failed because the control process exited with error code.CentOShttpdAIError
- ganglia bogon(匿名使用者)問題Go
- HTTPD之二————HTTPD服務詳解————httpd的配置檔案常見設定httpd
- Linux yum安裝httpd報錯 No package httpd available ?LinuxhttpdPackageAI
- httpd的坑httpd
- mac-httpdMachttpd
- Apache(httpd)詳解Apachehttpd
- httpd啟動指令碼httpd指令碼
- httpd 一鍵編譯安裝指令碼(centos6&7_httpd2.2&2.4)httpd編譯指令碼CentOS
- httpd編譯安裝phphttpd編譯PHP
- Nginx/Httpd負載均衡tomcat配置Nginxhttpd負載Tomcat
- apache啟動報錯:httpd: aprApachehttpd
- Linux——搭建Apache(httpd)伺服器LinuxApachehttpd伺服器
- Linux基礎命令---httpd守護程式Linuxhttpd
- Apache httpd和php的結合方式ApachehttpdPHP
- apache提示錯誤:httpd-ahssl.confApachehttpd
- httpd-2.4 編譯安裝(centos6)httpd編譯CentOS
- 設定開機自啟動nginx和httpdNginxhttpd
- httpd使用systemctl啟動超時解決過程httpd
- Installation failed with message INSTALL_FAILED_USER_RESTRICTED錯誤AIREST
- fatal: Authentication failedAI
- Gradle sync failed: Cause: dl.google.com:443 failed to respondGradleAIGo
- Android resource linking failedAndroidAI
- SDK Manager:failed to installAI
- Gradle Project Sync FailedGradleProjectAI
- Generating Pods project failedProjectAI
- 版本控制系統之基於httpd搭建私有git倉庫httpdGit
- Apache HTTPd 2.4.49 路徑穿越漏洞(CVE-2021-41773)復現Apachehttpd
- NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load xxxx錯誤解決方法ErrorAIXMLHTTP
- Linux架構25 ansible搭建交作業, playbook概述, playbook搭建httpdLinux架構httpd
- jupyter-kernelRestart:restart failedRESTAI
- Execution failed for task ':app:compileDebugJavaWithJavac'AIAPPCompileJava
- fork failed - Cannot allocate memoryAI
- OPatch failed with error code 73AIError
- Execution failed for task ‘:demo:stripReleaseDebugSymbols‘.AISymbol
- app:processReleaseResources, Failed to execute aaptAPPAIAPT
- 解決:Failed to load ApplicationContextAIAPPContext
- Spark Streaming Failed to read checSparkAI
- Execution failed for task ‘:app:processDebugResources‘.AIAPP