2

我正在尝试在 Snow Leopard 上运行 MAMP。服务器是绿色的并且工作正常,但是每当我使用任何浏览器时,我都会或多或少地收到来自 Chrome 的“糟糕”消息。我无法弄清楚问题是什么?

在我的 apache_error.log 我得到:

[Sun Dec 02 14:03:40 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 02 14:03:40 2012] [notice] Digest: done
[Sun Dec 02 14:03:40 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.4.4 configured -- resuming normal operations
[Sun Dec 02 14:14:12 2012] [notice] caught SIGTERM, shutting down
[Sun Dec 02 14:14:13 2012] [notice] Digest: generating secret for digest authentication...    
[Sun Dec 02 14:14:13 2012] [notice] Digest: done
[Sun Dec 02 14:14:13 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.4.4 configured -- resuming normal operations
[Sun Dec 02 14:27:55 2012] [notice] caught SIGTERM, shutting down
[Sun Dec 02 14:43:56 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 02 14:43:56 2012] [notice] Digest: done
[Sun Dec 02 14:43:56 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.4.4 configured -- resuming normal operations
[Sun Dec 02 15:04:14 2012] [notice] caught SIGTERM, shutting down
[Sun Dec 02 15:04:18 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 02 15:04:18 2012] [notice] Digest: done
[Sun Dec 02 15:04:18 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.4.4 configured -- resuming normal operations
[Sun Dec 02 15:04:24 2012] [notice] caught SIGTERM, shutting down
[Sun Dec 02 15:04:27 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 02 15:04:27 2012] [notice] Digest: done
[Sun Dec 02 15:04:27 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.4.4 configured -- resuming normal operations

mysql_error_log.err 是:

121202 15:04:27 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql
121202 15:04:27 [Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case insensitive.  This means that you can corrupt a MyISAM table by accessing it with different cases. You should consider changing lower_case_table_names to 1 or 2
121202 15:04:27 [Warning] One can only use the --user switch if running as root

121202 15:04:27 [Note] Plugin 'FEDERATED' is disabled.
121202 15:04:27 InnoDB: The InnoDB memory heap is disabled
121202 15:04:27 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121202 15:04:27 InnoDB: Compressed tables use zlib 1.2.3
121202 15:04:27 InnoDB: Initializing buffer pool, size = 128.0M
121202 15:04:27 InnoDB: Completed initialization of buffer pool
121202 15:04:27 InnoDB: highest supported file format is Barracuda.
121202 15:04:27 InnoDB: 1.1.8 started; log sequence number 1595675
121202 15:04:27 [Note] Server hostname (bind-address): '0.0.0.0'; port: 8889
121202 15:04:27 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
121202 15:04:27 [Note] Server socket created on IP: '0.0.0.0'.
121202 15:04:27 [Note] Event Scheduler: Loaded 0 events
121202 15:04:27 [Note] /Applications/MAMP/Library/bin/mysqld: ready for connections.
Version: '5.5.25'  socket: '/Applications/MAMP/tmp/mysql/mysql.sock'  port: 8889  Source distribution

有什么帮助吗?

4

1 回答 1

2

您说您的主机文件是空的,所以听起来计算机只是不知道“本地主机”是什么。尝试添加以下内容(完全复制):

127.0.0.1   localhost

255.255.255.255 broadcasthost
::1             localhost 
fe80::1%lo0 localhost

然后相当 MAMP 并重新启动。看看是否有帮助。

于 2012-12-02T20:30:36.203 回答