Ubuntu 重啟apache2未成功,AH00558錯誤
Ubuntu 重啟apache2未成功,錯誤如下:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message。
解決方案為:
$ sudo vim /etc/apache2/apache2.conf
最後加一句:
ServerName localhost:80
重啟即可成功!
相關推薦
Ubuntu 重啟apache2未成功,AH00558錯誤
Ubuntu 重啟apache2未成功,錯誤如下: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set t
解決ubuntu重啟之後,dns設定失效的問題
在學習hadoop的過程中,需要搭建偽分散式環境,需要用到linux系統。 在設定Ubuntu虛擬機器網路環境的時候,發現重啟之後,dns就失效了 之前修改的是 /etc/resolv.conf 在裡面寫了nameserver 結果沒注意看檔案的提示
ubuntu 重啟網絡方法--通過殺死進程重啟網絡
man post 方式 ger blog str manage log color 重啟網絡方法(通過殺死進程方式,達到網絡重啟) zh@zh:~$sudo NetworkManager restart //查看進程idNetworkManager 已正運行(pid 102
linux系統下ubuntu重啟apache服務命令及檔案許可權設定
常用修改許可權的命令: sudo chmod 600 ××× (只有所有者有讀和寫的許可權) sudo chmod 644 ××× (所有者有讀和寫的許可權,組使用者只有讀的許可權) sudo chmod 700 ××× (只有所有者有讀和寫以及執行的許可權) sudo chmod
當網站出現502時,若重啟PHP能成功,則執行如下操作 (Linux定時執行.php檔案)
問題:我的伺服器在一段時間的時候,執行幾百個網站時出現了502錯誤,通過我的分析,時php-fpm承受不了多個網站的壓力,就出現崩潰,那麼這是就需要在網站出現502時,重啟php-fpm解決(或者你可以選擇優化php-fpm的效能) 解決思路:當網站出現502時,若重啟PHP能成功,那麼就需要在
MySQL如何在不重啟的情況下,修改不能動態修改的引數
文章目錄 如何在不重啟的情況下,修改生效不能動態修改的引數 一、簡介 二、如何解決 如何在不重啟的情況下,修改生效不能動態修改的引數 一、簡介 問題來源於DBA內部,主從複製中提供了引數slave_skip_
微信開發者工具初始化專案時,進去報錯:小程式重啟耗時過久,請確認業務邏輯中是否有複雜運算,或者死迴圈
如圖上,為錯誤原因。 之前用開發者工具用的好好地,前些日子又版本更新,升級了一下,然後開啟專案就出現上面的問題。當時以為電腦出啥問題了,也沒當回事。今天再次開啟開發者工具,發現還是出現上面的問題。一臉懵,新建專案,啥都沒做竟然出問題。網上一查同樣的問題一大堆。
【docker】docker啟動、重啟、關閉命令,附帶:docker啟動容器報錯:docker: Error response from daemon: driver failed programming external connectivity on endpoint es2-node
在關閉並放置centos 的防火牆重啟之後【操作:https://www.cnblogs.com/sxdcgaq8080/p/10032829.html】 啟動docker容器就發現開始報錯: [[email protected] elasticSearch]# docker run -d
kvm熱新增磁碟,且停機重啟kvm虛擬機器,檔案資訊不丟失
筆者centos7.5系統參考:http://www.cnblogs.com/pigdragon/p/9506771.html#宿主機上建立一個磁碟檔案qemu-img create -f qcow2 test2_add01.qcow2 5G#宿主機上熱新增該磁碟到對應虛擬主機中去virsh attach-d
kvm熱添加磁盤,且停機重啟kvm虛擬機,文件信息不丟失
發現 文件信息 drive 格式化 html cow efault ofo qcow 筆者centos7.5系統參考:http://www.cnblogs.com/pigdragon/p/9506771.html#宿主機上創建一個磁盤文件qemu-img create -f
cetos7的網卡重啟及DNS配置,防火墻設置
查看 con ORC ble inux sts host linux 進行 centos 6 的網卡重啟辦法 service network reload centos 7 的網卡重啟辦法 systemctl rest
ubuntu重啟後無法進入桌面且所有命令無法執行的問題
現象 在登入介面輸入密碼後,桌面出現黑屏終端後又快速回到登入介面,按ctrl+alt+f1進入tty後只能執行cd、pwd命令,其他命令(如ls,sudo)均無法執行,提示資訊是找不到命令(並且我裝的中文系統,在tty的提示資訊還是一堆亂碼,問題解決後果斷改為
Openrestry 平滑重啟(無reload,不重啟nginx)
在分散式服務下,我們會用nginx做負載均衡, 業務站點訪問某服務站點的時候, 統一走nginx, 然後nginx根據一定的輪詢策略,將請求路由到後端一臺指定的伺服器上。 這樣的架構是沒有問題的, 但是我們這裡考慮幾個問題: 1) 業務頻繁上下線問題:
如何解決ubuntu重啟後dns服務消失問題
ubuntu重啟後/etc/resolv.conf中的dns會消失,給我們遠端服務造成很大麻煩.cat /etc/resolv.conf會發現一段警告說這個檔案是resolvconf程式動態建立的,不要直接手動編輯,修改將被覆蓋。 方法一:此方法只適合新增一條dns
Linux---ubuntu重啟網路服務
在更改網路配置後,我們需要重啟網路服務使更改生效。在centos系統中,我們可以通過以下命令重啟網路服務: /etc/init.d/network restart # or service network restart Ubuntu14.04重啟網路服
MFC 程式崩潰自動重啟 和 未捕獲到的異常寫退出棧
專案開發中,經常會有這些情況同時發生: 1. 專案工期很緊; 2. 程式不定期崩潰;(崩潰間隔時間較長、且跟蹤困難) 因此,總想找到一種方法,在程式崩潰後,能自動重新啟動,繼續執行。 帶著這個目的,經過一段時間研究後,發現可以採取這樣的方法:對整個程式的所有異常進行捕獲,然後接管系統的異常處理機
重啟nginx警告*hash_max_size,*hash_bucket_size
警告資訊如下: Starting nginx: nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash
微信小程式報錯:小程式重啟耗時過久,請確認業務邏輯中是否有複雜運算,或者死迴圈的解決
在開啟新版本的微信開發者工具時,彈出以下錯誤框:然後你再等會會發現,頁面照樣載入Ok,但是會出現這麼一個情況,就是開啟一個.wxml或者.wxss或者.js檔案,會出現空白的情況,就是你檔案裡的程式碼不見了,未加載出來....如下圖這個錯誤的解決:(1)首先第一點是你檔案裡的
ubuntu 重啟命令,ubuntu 重啟網絡卡方法
ubuntu 重啟命令 重啟命令: 1、reboot 2、shutdown -r now 立刻重啟(root使用者使用) 3、shutdown -r 10 過10分鐘自動重啟(root使用者使用) 4、shutdown -r 20:35 在時間為20:35時候重啟(root使用者使用) 如果是通過shu
Ubuntu重啟網卡的三種方法
running ubun ini top log config tails ace ifconf 一、network利用root帳戶# service network restart 或者/etc/init.d/networking restart 二、ifdown/ifu