
我剛剛將伺服器升級到 Ubuntu 14.04.2。之前我已經透過 12.10 的「完美伺服器」指南對其進行了配置。
不幸的是,升級後我無法訪問任何以前工作正常的網站。伺服器使用ISPConfig,因此升級到14.04後,我進行了手動更新,重新配置了權限和服務,但出現以下錯誤
* Restarting web server apache2
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/conf-enabled/000-ispconfig.local.conf:62
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:8081
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
而 apache error.log 列出了以下內容:
[Thu Mar 12 10:18:10.301329 2015] [auth_digest:notice] [pid 3215] AH01757: generating secret for digest authentication ...
[Thu Mar 12 10:18:10.319274 2015] [:notice] [pid 3220] FastCGI: process manager initialized (pid 3220)
[Thu Mar 12 10:18:10.586557 2015] [:notice] [pid 3215] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu Mar 12 10:18:10.586612 2015] [:notice] [pid 3215] mod_python: using mutex_directory /tmp
[Thu Mar 12 10:18:10.687388 2015] [mpm_prefork:notice] [pid 3215] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/5.5.9-1ubuntu4.6 mod_python/3.3.1 Python/2.7.6 OpenSSL/1.0.1f configured -- resuming normal operations
[Thu Mar 12 10:18:10.687465 2015] [core:notice] [pid 3215] AH00094: Command line: '/usr/sbin/apache2'
[Thu Mar 12 10:21:31.520361 2015] [mpm_prefork:notice] [pid 3215] AH00169: caught SIGTERM, shutting down
你能幫我想個辦法擺脫這個混亂嗎?
謝謝你!
答案1
顯然某些東西已經在您嘗試綁定的連接埠上運行。它是什麼?恐怕你必須自己找出答案。無論如何,netstat 命令可以幫助您。嘗試 netstat -nap | grep 8080(或8081)來找出哪個程序正在使用此連接埠。