我正试图在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
任何帮助?
答案 0 :(得分:2)
你说你的Hosts文件是空的,所以听起来好像计算机只是不知道“localhost”是什么。尝试添加以下内容(完全复制):
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
然后相当MAMP并重启。看看是否有帮助。