昨晚我试图更新我的Ubuntu服务器,当尝试通过IP或任何虚拟主机域名访问服务器时,它最终导致ERR_CONNECTION_REFUSED问题。
连续挖掘产量:
; <<>> DiG 9.10.6 <<>> REDACTED
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5086
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;thriftytreeservice.com. IN A
;; ANSWER SECTION:
REDACTED. 588 IN A REDACTED
;; Query time: 118 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Mar 13 18:48:08 PDT 2019
;; MSG SIZE rcvd: 67
当我在服务器上运行wget时:
admin:apache2/ (master✗) $ wget http://127.0.0.1 [21:46:18]
--2019-03-13 21:50:09-- http://127.0.0.1/
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4930 (4.8K) [text/html]
index.html: Permission denied
Cannot write to ‘index.html’ (Permission denied).
但是,我之前运行过chown -R www-data:www-data / var / www / *,所以我认为权限设置正确。
任何对此事的想法将不胜感激!谢谢。