
我已按照本指南所述在我的 WordPress Ubuntu EC2 實例中安裝了 Varnish:
http://jeffreifman.com/detailed-wordpress-guide-for-aws/install-varnish/
我確實對 Varnish 有很多問題,並且想禁用 Varnish。
我嘗試撤銷指南中描述的步驟,例如將連接埠從:8080
back 設定為:80
,然後重新啟動 Apache 並重新啟動 Ubuntu。不幸的是,由於我的 WordPress 網站在執行這些步驟後不再工作,所以我一定錯過了一些東西。
在瀏覽器中開啟我的網站時,我收到以下錯誤訊息:
Error 503 Service Unavailable
Service Unavailable
Guru Meditation:
XID: 513637370
從我的 WordPress 安裝中停用(甚至卸載 Varnish)的正確方法是什麼?
答案1
如果您使用 CentOS 或 Red Hat,請使用以下命令:
service varnish stop
如果您想卸載清漆,請嘗試以下操作:
yum erase varnish
或參考https://stackoverflow.com/questions/27739853/varnish-cache-server-error-503-service-unavailable
答案2
查看該訊息,您似乎忘記將 varnish 連接埠改回預設的 6081,因此您應該編輯/etc/default/varnish
檔案並更改VARNISH_LISTEN_PORT
或-a
適用的參考。
如果你想卸載清漆,它應該像sudo apt-get remove varnish