{"id":32070,"date":"2024-11-25T08:57:55","date_gmt":"2024-11-25T00:57:55","guid":{"rendered":"https:\/\/fwq.ai\/blog\/32070\/"},"modified":"2024-11-25T08:57:55","modified_gmt":"2024-11-25T00:57:55","slug":"%e4%b8%80%e6%96%87%e8%af%a6%e8%a7%a3mac%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85wordpress","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/32070\/","title":{"rendered":"\u4e00\u6587\u8be6\u89e3Mac\u5982\u4f55\u5b89\u88c5WordPress"},"content":{"rendered":"<p>\u4e0b\u9762\u7531\/&#8221; target=&#8221;_blank&#8221;&gt;<strong>wordpress<\/strong>\u6559\u7a0b\u680f\u76ee\u7ed9\u5927\u5bb6\u4ecb\u7ecdmac\u5982\u4f55\u5b89\u88c5wordpress\uff0c\u5e0c\u671b\u5bf9\u9700\u8981\u7684\u670b\u53cb\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><strong>Mac \u5b89\u88c5WordPress<\/strong><\/p>\n<h3>\u4e00\u3001\u73af\u5883\u8981\u6c42<\/h3>\n<ul>\n<li>\n<p>PHP 5.2.4\u6216\u66f4\u65b0\u7248\u672c<\/p>\n<\/li>\n<li>\n<p>MySQL 5.0\u6216\u66f4\u65b0\u7248\u672c<\/p>\n<\/li>\n<li>\n<p>WebServer(\u53ef\u4ee5\u9009\u62e9Apache\u3001nginx\u7b49\u652f\u6301PHP\u7684\uff0c\u8fd9\u91cc\u6211\u9009\u62e9Apache)<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u8f6f\u4ef6\u5b89\u88c5<\/h3>\n<h4>1\u3001\u5b89\u88c5PHP<\/h4>\n<p>Mac OSX \u81ea\u5e26PHP\uff0c\u65e0\u9700\u5b89\u88c5\u3002<\/p>\n<p>\u4e0d\u5efa\u8bae\u901a\u8fc7brew\u3001\u6e90\u7801\u5b89\u88c5\u7b49\u65b9\u5f0f\u5347\u7ea7PHP7\u3002\u82e5\u9700\u8981\u53ef\u5728\u865a\u62df\u673a\u4e2d\u6d4b\u8bd5\u3002<\/p>\n<h4>2\u3001\u5b89\u88c5MySQL<\/h4>\n<h5>MySQL\u4e0b\u8f7d<\/h5>\n<p>\u8bbf\u95eeMySQL\u7684\u5b98\u7f51 http:\/\/www.mysql.com\/downloads\/ \u5728\u9875\u9762\u4e2d\u4f1a\u770b\u5230\u201cMySQL Community Server\u201d\u4e0b\u65b9\u6709\u4e00\u4e2a\u201cdownload\u201d\u6309\u94ae\uff0c\u70b9\u51fb\u8be5\u6309\u94ae\u3002<\/p>\n<p>\u8fdb\u5165MySQL\u7684\u4e0b\u8f7d\u754c\u9762 http:\/\/www.mysql.com\/downloads\/mysql\/\uff0c\u4e0b\u9762\u7f57\u5217\u7684\u90fd\u662f\u5728Mac OS\u4e0a\u80fd\u7528\u7684MySQL\u7684\u7248\u672c\uff0c\u9009\u62e9\u9700\u8981\u7684\u7248\u672c\u70b9\u51fb\u4e0b\u8f7d\u3002<\/p>\n<p>\u7136\u540e\u4f1a\u8df3\u8f6c\u5230\u53e6\u5916\u4e00\u4e2a\u754c\u9762\uff0c\u8fd9\u4e2a\u754c\u9762\u662f\u63d0\u793a\u4f60\u9700\u4e0d\u9700\u8981\u6ce8\u518c\u7684\uff0c\u76f4\u63a5\u9009\u62e9\u6700\u4e0b\u9762\u7684\u201cNo thanks,just take me to downloads!\u201d,\u7136\u540e\u8fd9\u624d\u771f\u6b63\u8df3\u8f6c\u5230\u4e86\u4e0b\u8f7d\u7684\u754c\u9762\uff0c\u8fd9\u4e2a\u754c\u9762\u5217\u4e86\u5f88\u591a\u7684\u4f9b\u4e0b\u8f7d\u7684\u670d\u52a1\u5668\uff0c\u9009\u62e9\u4e00\u4e2a\u670d\u52a1\u5668\u8fdb\u884c\u4e0b\u8f7d\u5c31OK\u4e86\u3002<\/p>\n<h5>MySQL\u5b89\u88c5<\/h5>\n<p>\u53cc\u51fb\u4e0b\u8f7d\u4e0b\u6765\u7684\u6587\u4ef6\uff0c\u4e00\u822c\u91cc\u9762\u4f1a\u6709\u51e0\u4e2a\u6587\u4ef6\uff0c5.6\u4ee5\u4e0a\u7684\u5305\u91cc\u9762\u6ca1\u6709MySQL.prefPane\u6587\u4ef6\uff0c\u4f46\u662f\u4f1a\u9ed8\u8ba4\u5b89\u88c5\uff1b5.6\u4ee5\u4e0b\u5219\u9700\u8981\u81ea\u5df1\u624b\u52a8\u5b89\u88c5\u3002 &nbsp;<br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f1a\u5728\u7cfb\u7edf\u7684(\u504f\u597d\u8bbe\u7f6e)\u91cc\u9762\u51fa\u73b0MySQL\u7684\u7ba1\u7406\u6309\u94ae\uff0c\u901a\u8fc7\u8fd9\u4e2a\u6309\u94ae\u53ef\u4ee5\u542f\u52a8\u548c\u505c\u6b62MySQL\u3002<\/p>\n<p>\ufe0f\u6ce8\u610f\uff1aMySQL\u5b89\u88c5\u5b8c\u6210\u65f6\uff0c\u4f1a\u4ee5\u5f39\u7a97\u7684\u5f62\u5f0f\u663e\u793a\u521d\u59cb\u5bc6\u7801\uff0c\u8bf7\u4fdd\u5b58\u597d\u8be5\u5bc6\u7801\uff01\uff01\uff01<\/p>\n<h5>MySQL\u914d\u7f6e<\/h5>\n<p>\u6253\u5f00\u547d\u4ee4\u884c &nbsp;<br \/>\u7f16\u8f91.bash_profile\uff0c\u5e76\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9<\/p>\n<pre>vi .bash_profile  \ntcsh\u4e0b\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9:\nalias mysql \/usr\/local\/mysql\/bin\/mysql\nalias mysqladmin \/usr\/local\/mysql\/bin\/mysqladmin\nbash\u4e0b\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9:\nalias mysql=\/usr\/local\/mysql\/bin\/mysql\nalias mysqladmin=\/usr\/local\/mysql\/bin\/mysqladmin<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa,\u5e76\u542f\u7528\u914d\u7f6e<\/p>\n<pre>source .bash_profile<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u521d\u6b21\u4f7f\u7528MySQL\u65f6\u9700\u8981\u4fee\u6539\u5bc6\u7801\uff0c\u8868\u73b0\u4e3a\u4ee5\u4e0b\u9519\u8bef<\/p>\n<pre>ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5177\u4f53\u53ef\u4ee5\u53c2\u7167\u5b98\u7f51\u7684\u4f8b\u5b50\u89e3\u51b3 &nbsp;<br \/>http:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/alter-user.html &nbsp; &nbsp;<br \/>http:\/\/dev.mysql.com\/doc\/refman\/5.6\/en\/alter-user.html<\/p>\n<p>\u4ee5\u4e0b\u4e3a\u6211\u7684\u89e3\u51b3\u65b9\u6848<\/p>\n<pre>mysql&gt; SELECT 1;\nERROR 1820 (HY000): You must SET PASSWORD before executing this statement\n\nmysql&gt; SET PASSWORD = PASSWORD('new_password');\nQuery OK, 0 rows affected (0.01 sec)  \n  \nmysql&gt; quit;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u73b0\u5728\u5c31\u53ef\u4ee5\u4f7f\u7528\u65b0\u5bc6\u7801\u91cd\u65b0\u767b\u5f55\u6570\u636e\u5e93<\/p>\n<h5>\u521b\u5efa\u6570\u636e\u5e93<\/h5>\n<pre>mysql&gt;create database  database-name;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h4>2\u3001\u5b89\u88c5Apache<\/h4>\n<p>Mac OSX \u81ea\u5e26Apache\uff0c\u65e0\u9700\u5b89\u88c5\u3002<\/p>\n<h5>Apache\u914d\u7f6e<\/h5>\n<p>\u6839\u76ee\u5f55\u914d\u7f6e\u6587\u4ef6\u4e3a\/etc\/apache2\/httpd.conf<\/p>\n<pre>sudo vi \/etc\/apache2\/httpd.conf\n\n\u641c\u7d22DocumentRoot\uff08\u64cd\u4f5c\u6309ESC + shift + \uff1a+ \/DocumentRoot\uff09\n\n\u4fee\u6539\u4e3a\u5982\u4e0b\u5185\u5bb9\u5373\u53ef\n# DocumentRoot: The directory out of which you will serve your\n# documents. By default, all requests are taken from this directory, but\n# symbolic links and aliases may be used to point to other locations.\nDocumentRoot \"\/usr\/local\/www\/\"\n&lt;Directory \"\/usr\/local\/www\/\"&gt;\n\n\u4e3a\u4ec0\u4e48\u628aApache\u7684\u7f51\u7ad9\u6839\u76ee\u5f55\u653e\u5728\/usr\/local\/www\/\u8fd9\u91cc\uff1f  \n\u7b54\uff1a\u4e0d\u9700\u8981\u4fee\u6539\u6743\u9650\uff0c\u4e0d\u9700\u8981\u6298\u817e\u3002\n\n\u628a\u8fd9\u884c\u7684\u6ce8\u91ca\u53bb\u6389\n#LoadModule php5_module libexec\/apache2\/libphp5.so<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u591a\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u4e3a\/etc\/apache2\/extra\/httpd-vhosts.conf<\/p>\n<pre>#&lt;VirtualHost *:80&gt;\n#    ServerAdmin webmaster@dummy-host2.example.com\n#    DocumentRoot \"\/usr\/docs\/dummy-host2.example.com\"\n#    ServerName dummy-host2.example.com\n#    ErrorLog \"\/private\/var\/log\/apache2\/dummy-host2.example.com-error_log\"\n#    CustomLog \"\/private\/var\/log\/apache2\/dummy-host2.example.com-access_log\" common\n#&lt;\/VirtualHost&gt;\n\n\u91cc\u9762\u67092\u4e2a\u4f8b\u5b50\uff0c\u590d\u5236\u4e00\u4e2a\u4fee\u6539\u5982\u4e0b\n&lt;VirtualHost *:80&gt;\n    DocumentRoot \"\/usr\/local\/www\/WordPress\/WordPress01\"\n    ServerName WordPress01\n    ErrorLog \"\/private\/var\/log\/apache2\/WordPress01-error_log\"\n    CustomLog \"\/private\/var\/log\/apache2\/WordPress01-access_log\" common\n&lt;\/VirtualHost&gt;\n\n&lt;VirtualHost *:80&gt;\n    DocumentRoot \"\/usr\/local\/www\/WordPress\/WordPress02\"\n    ServerName WordPress02\n    ErrorLog \"\/private\/var\/log\/apache2\/WordPress02-error_log\"\n    CustomLog \"\/private\/var\/log\/apache2\/WordPress02-access_log\" common\n&lt;\/VirtualHost&gt;\n\n\u73b0\u5728apache\u591a\u7ad9\u70b9\u914d\u7f6e\u597d\u4e86\u3002<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4fee\u6539\/etc\/hosts\u6587\u4ef6<\/p>\n<pre>sudo vi \/etc\/hosts\n\u4fee\u6539\u5982\u4e0b\u5185\u5bb9\uff0c\n\n##\n# Host Database\n#\n# localhost is used to configure the loopback interface\n# when the system is booting.  Do not change this entry.\n##\n127.0.0.1        localhost\n255.255.255.255  broadcasthost\n127.0.0.1        WordPress01\n127.0.0.1        WordPress02\n127.0.0.1        phpMyAdmin\n::1              localhost\n\n\u542f\u52a8Apache\uff1a\nsudo apachectl start\n\n\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\uff1alocalhost\/WordPress01 \u8bbf\u95ee WordPress01 \u7684\u5185\u5bb9\u4e86\n\n\u91cd\u542fApache\uff1a\nsudo apachectl restart\n\n\u505c\u6b62Apache\uff1a\nsudo apachectl stop<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h3>\u4e09\u3001\u5b89\u88c5WordPress<\/h3>\n<p>\u5230WordPress\u7684\u5b98\u7f51 &nbsp;<br \/>https:\/\/cn.wordpress.org\/ &nbsp;<br \/>\u4e0a\u4e0b\u8f7d\u5b89\u88c5\u5305\uff0c\u89e3\u538b\u5e76\u91cd\u547d\u540d\u4e3aWordPress01\uff0c\u653e\u5230\/usr\/local\/www\/WordPress\u76ee\u5f55\u4e0b\u9762\u3002 &nbsp;<br \/>\u4fee\u6539WordPress01\u91cc\u9762\u7684wp-config-example.conf\u7684\u5185\u5bb9\u5982\u4e0b\u5e76\u91cd\u547d\u540d\u4e3awp-config.conf<\/p>\n<pre>&lt;?php\n\/**\n * WordPress\u57fa\u7840\u914d\u7f6e\u6587\u4ef6\u3002\n *\n * \u8fd9\u4e2a\u6587\u4ef6\u88ab\u5b89\u88c5\u7a0b\u5e8f\u7528\u4e8e\u81ea\u52a8\u751f\u6210wp-config.php\u914d\u7f6e\u6587\u4ef6\uff0c\n * \u60a8\u53ef\u4ee5\u4e0d\u4f7f\u7528\u7f51\u7ad9\uff0c\u60a8\u9700\u8981\u624b\u52a8\u590d\u5236\u8fd9\u4e2a\u6587\u4ef6\uff0c\n * \u5e76\u91cd\u547d\u540d\u4e3a\u201cwp-config.php\u201d\uff0c\u7136\u540e\u586b\u5165\u76f8\u5173\u4fe1\u606f\u3002\n *\n * \u672c\u6587\u4ef6\u5305\u542b\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a\n *\n * * MySQL\u8bbe\u7f6e\n * * \u5bc6\u94a5\n * * \u6570\u636e\u5e93\u8868\u540d\u524d\u7f00\n * * ABSPATH\n *\n * @link https:\/\/codex.wordpress.org\/zh-cn:%E7%BC%96%E8%BE%91_wp-config.php\n *\n * @package WordPress\n *\/\n\n\/\/ ** MySQL \u8bbe\u7f6e - \u5177\u4f53\u4fe1\u606f\u6765\u81ea\u60a8\u6b63\u5728\u4f7f\u7528\u7684\u4e3b\u673a ** \/\/\n\/** WordPress\u6570\u636e\u5e93\u7684\u540d\u79f0 *\/\ndefine('DB_NAME', 'WordPress');\n\n\/** MySQL\u6570\u636e\u5e93\u7528\u6237\u540d *\/\ndefine('DB_USER', 'root');\n\n\/** MySQL\u6570\u636e\u5e93\u5bc6\u7801 *\/\ndefine('DB_PASSWORD', '123456');\n\n\/** MySQL\u4e3b\u673a *\/\ndefine('DB_HOST', 'localhost');\n\n\/** \u521b\u5efa\u6570\u636e\u8868\u65f6\u9ed8\u8ba4\u7684\u6587\u5b57\u7f16\u7801 *\/\ndefine('DB_CHARSET', 'utf8');\n\n\/** \u6570\u636e\u5e93\u6574\u7406\u7c7b\u578b\u3002\u5982\u4e0d\u786e\u5b9a\u8bf7\u52ff\u66f4\u6539 *\/\ndefine('DB_COLLATE', '');\n\n\/**#@+\n * \u8eab\u4efd\u8ba4\u8bc1\u5bc6\u94a5\u4e0e\u76d0\u3002\n *\n * \u4fee\u6539\u4e3a\u4efb\u610f\u72ec\u4e00\u65e0\u4e8c\u7684\u5b57\u4e32\uff01\n * \u6216\u8005\u76f4\u63a5\u8bbf\u95ee{@link https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/\n * WordPress.org\u5bc6\u94a5\u751f\u6210\u670d\u52a1}\n * \u4efb\u4f55\u4fee\u6539\u90fd\u4f1a\u5bfc\u81f4\u6240\u6709cookies\u5931\u6548\uff0c\u6240\u6709\u7528\u6237\u5c06\u5fc5\u987b\u91cd\u65b0\u767b\u5f55\u3002\n *\n * @since 2.6.0\n *\/\ndefine('AUTH_KEY',            'put your unique phrase here');\ndefine('SECURE_AUTH_KEY',     'put your unique phrase here');\ndefine('LOGGED_IN_KEY',       'put your unique phrase here');\ndefine('NONCE_KEY',           'put your unique phrase here');\ndefine('AUTH_SALT',           'put your unique phrase here');\ndefine('SECURE_AUTH_SALT',    'put your unique phrase here');\ndefine('LOGGED_IN_SALT',      'put your unique phrase here');\ndefine('NONCE_SALT',          'put your unique phrase here');\n\n\/**#@-*\/\n\n\/**\n * WordPress\u6570\u636e\u8868\u524d\u7f00\u3002\n *\n * \u5982\u679c\u60a8\u6709\u5728\u540c\u4e00\u6570\u636e\u5e93\u5185\u5b89\u88c5\u591a\u4e2aWordPress\u7684\u9700\u6c42\uff0c\u8bf7\u4e3a\u6bcf\u4e2aWordPress\u8bbe\u7f6e\n * \u4e0d\u540c\u7684\u6570\u636e\u8868\u524d\u7f00\u3002\u524d\u7f00\u540d\u53ea\u80fd\u4e3a\u6570\u5b57\u3001\u5b57\u6bcd\u52a0\u4e0b\u5212\u7ebf\u3002\n *\/\n$table_prefix  = 'wp_';\n\n\/**\n * \u5f00\u53d1\u8005\u4e13\u7528\uff1aWordPress\u8c03\u8bd5\u6a21\u5f0f\u3002\n *\n * \u5c06\u8fd9\u4e2a\u503c\u6539\u4e3atrue\uff0cWordPress\u5c06\u663e\u793a\u6240\u6709\u7528\u4e8e\u5f00\u53d1\u7684\u63d0\u793a\u3002\n * \u5f3a\u70c8\u5efa\u8bae\u63d2\u4ef6\u5f00\u53d1\u8005\u5728\u5f00\u53d1\u73af\u5883\u4e2d\u542f\u7528WP_DEBUG\u3002\n *\n * \u8981\u83b7\u53d6\u5176\u4ed6\u80fd\u7528\u4e8e\u8c03\u8bd5\u7684\u4fe1\u606f\uff0c\u8bf7\u8bbf\u95eeCodex\u3002\n *\n * @link https:\/\/codex.wordpress.org\/Debugging_in_WordPress\n *\/\ndefine('WP_DEBUG', true);\n\n\/**\n * zh_CN\u672c\u5730\u5316\u8bbe\u7f6e\uff1a\u542f\u7528ICP\u5907\u6848\u53f7\u663e\u793a\n *\n * \u53ef\u5728\u8bbe\u7f6e\u2192\u5e38\u89c4\u4e2d\u4fee\u6539\u3002\n * \u5982\u9700\u7981\u7528\uff0c\u8bf7\u79fb\u9664\u6216\u6ce8\u91ca\u6389\u672c\u884c\u3002\n *\/\ndefine('WP_ZH_CN_ICP_NUM', true);\n\n\/* \u597d\u4e86\uff01\u8bf7\u4e0d\u8981\u518d\u7ee7\u7eed\u7f16\u8f91\u3002\u8bf7\u4fdd\u5b58\u672c\u6587\u4ef6\u3002\u4f7f\u7528\u6109\u5feb\uff01 *\/\n\n\/** WordPress\u76ee\u5f55\u7684\u7edd\u5bf9\u8def\u5f84\u3002 *\/\nif ( !defined('ABSPATH') )\n    define('ABSPATH', dirname(__FILE__) . '\/');\n\n\/** \u8bbe\u7f6eWordPress\u53d8\u91cf\u548c\u5305\u542b\u6587\u4ef6\u3002 *\/\nrequire_once(ABSPATH . 'wp-settings.php');\n\n\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\uff1alocalhost\/WordPress01 \u5b89\u88c5WordPress\u4e86\u3002\n\n\ufe0f\u6ce8\u610f\uff1a\u8fd9\u91cc\u5f88\u6709\u53ef\u80fd\u4f1a\u5728\u6d4f\u89c8\u5668\u4e2d\u770b\u5230\u201c\u94fe\u63a5\u6570\u636e\u5e93\u53d1\u751f\u9519\u8bef\u201d\uff0c\u9700\u8981\u786e\u8ba4\u4ee5\u4e0b\u5185\u5bb9\uff1a\n\n* \u6570\u636e\u5e93\u7528\u6237\u540d\u548c\u5bc6\u7801\u6b63\u786e\u3002\n* \u6570\u636e\u5e93\u5df2\u7ecf\u542f\u52a8\u5e76\u80fd\u8bbf\u95ee\u3002\n\n\u5982\u679c\u4ee5\u4e0a\u65e0\u8bef\uff0c\u8bf7\u4fee\u6539wp-config.conf\u6587\u4ef6\u4e2d\u7684  \n\/** MySQL\u4e3b\u673a *\/\ndefine('DB_HOST', 'localhost');\n\n\u6539\u4e3a\uff1a\n\/** MySQL\u4e3b\u673a *\/\ndefine('DB_HOST', '127.0.0.1');\n\n\u6216\u8005\u662f MySQL\u4e3b\u673a\u7684IP\n\n\u63a5\u4e0b\u6765\u6b63\u5e38\u5b89\u88c5\u5373\u53ef\u3002<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e00\u6587\u8be6\u89e3Mac\u5982\u4f55\u5b89\u88c5WordPress\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u7531\/&#8221; target=&#8221;_blank&#8221;&gt;wordpress\u6559\u7a0b\u680f\u76ee\u7ed9\u5927\u5bb6\u4ecb\u7ecdmac\u5982\u4f55\u5b89\u88c5wordpress\uff0c\u5e0c\u671b\u5bf9\u9700\u8981\u7684\u670b\u53cb\u6709\u6240\u5e2e\u52a9\uff01 Mac \u5b89\u88c5WordPress \u4e00\u3001\u73af\u5883\u8981\u6c42 PHP 5.2.4\u6216\u66f4\u65b0\u7248\u672c MySQL 5.0\u6216\u66f4\u65b0\u7248\u672c WebServer(\u53ef\u4ee5\u9009\u62e9Apache\u3001nginx\u7b49\u652f\u6301PHP\u7684\uff0c\u8fd9\u91cc\u6211\u9009\u62e9Apache) \u4e8c\u3001\u8f6f\u4ef6\u5b89\u88c5 1\u3001\u5b89\u88c5PHP Mac OSX \u81ea\u5e26PHP\uff0c\u65e0\u9700\u5b89\u88c5\u3002 \u4e0d\u5efa\u8bae\u901a\u8fc7brew\u3001\u6e90\u7801\u5b89\u88c5\u7b49\u65b9\u5f0f\u5347\u7ea7PHP7\u3002\u82e5\u9700\u8981\u53ef\u5728\u865a\u62df\u673a\u4e2d\u6d4b\u8bd5\u3002 2\u3001\u5b89\u88c5MySQL MySQL\u4e0b\u8f7d \u8bbf\u95eeMySQL\u7684\u5b98\u7f51 http:\/\/www.mysql.com\/downloads\/ \u5728\u9875\u9762\u4e2d\u4f1a\u770b\u5230\u201cMySQL Community Server\u201d\u4e0b\u65b9\u6709\u4e00\u4e2a\u201cdownload\u201d\u6309\u94ae\uff0c\u70b9\u51fb\u8be5\u6309\u94ae\u3002 \u8fdb\u5165MySQL\u7684\u4e0b\u8f7d\u754c\u9762 http:\/\/www.mysql.com\/downloads\/mysql\/\uff0c\u4e0b\u9762\u7f57\u5217\u7684\u90fd\u662f\u5728Mac OS\u4e0a\u80fd\u7528\u7684MySQL\u7684\u7248\u672c\uff0c\u9009\u62e9\u9700\u8981\u7684\u7248\u672c\u70b9\u51fb\u4e0b\u8f7d\u3002 \u7136\u540e\u4f1a\u8df3\u8f6c\u5230\u53e6\u5916\u4e00\u4e2a\u754c\u9762\uff0c\u8fd9\u4e2a\u754c\u9762\u662f\u63d0\u793a\u4f60\u9700\u4e0d\u9700\u8981\u6ce8\u518c\u7684\uff0c\u76f4\u63a5\u9009\u62e9\u6700\u4e0b\u9762\u7684\u201cNo thanks,just take me to downloads!\u201d,\u7136\u540e\u8fd9\u624d\u771f\u6b63\u8df3\u8f6c\u5230\u4e86\u4e0b\u8f7d\u7684\u754c\u9762\uff0c\u8fd9\u4e2a\u754c\u9762\u5217\u4e86\u5f88\u591a\u7684\u4f9b\u4e0b\u8f7d\u7684\u670d\u52a1\u5668\uff0c\u9009\u62e9\u4e00\u4e2a\u670d\u52a1\u5668\u8fdb\u884c\u4e0b\u8f7d\u5c31OK\u4e86\u3002 MySQL\u5b89\u88c5 \u53cc\u51fb\u4e0b\u8f7d\u4e0b\u6765\u7684\u6587\u4ef6\uff0c\u4e00\u822c\u91cc\u9762\u4f1a\u6709\u51e0\u4e2a\u6587\u4ef6\uff0c5.6\u4ee5\u4e0a\u7684\u5305\u91cc\u9762\u6ca1\u6709MySQL.prefPane\u6587\u4ef6\uff0c\u4f46\u662f\u4f1a\u9ed8\u8ba4\u5b89\u88c5\uff1b5.6\u4ee5\u4e0b\u5219\u9700\u8981\u81ea\u5df1\u624b\u52a8\u5b89\u88c5\u3002 &nbsp;\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f1a\u5728\u7cfb\u7edf\u7684(\u504f\u597d\u8bbe\u7f6e)\u91cc\u9762\u51fa\u73b0MySQL\u7684\u7ba1\u7406\u6309\u94ae\uff0c\u901a\u8fc7\u8fd9\u4e2a\u6309\u94ae\u53ef\u4ee5\u542f\u52a8\u548c\u505c\u6b62MySQL\u3002 \ufe0f\u6ce8\u610f\uff1aMySQL\u5b89\u88c5\u5b8c\u6210\u65f6\uff0c\u4f1a\u4ee5\u5f39\u7a97\u7684\u5f62\u5f0f\u663e\u793a\u521d\u59cb\u5bc6\u7801\uff0c\u8bf7\u4fdd\u5b58\u597d\u8be5\u5bc6\u7801\uff01\uff01\uff01 MySQL\u914d\u7f6e \u6253\u5f00\u547d\u4ee4\u884c &nbsp;\u7f16\u8f91.bash_profile\uff0c\u5e76\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9 vi .bash_profile tcsh\u4e0b\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9: alias mysql \/usr\/local\/mysql\/bin\/mysql alias mysqladmin \/usr\/local\/mysql\/bin\/mysqladmin bash\u4e0b\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9: alias mysql=\/usr\/local\/mysql\/bin\/mysql alias mysqladmin=\/usr\/local\/mysql\/bin\/mysqladmin \u767b\u5f55\u540e\u590d\u5236 \u4fdd\u5b58\u5e76\u9000\u51fa,\u5e76\u542f\u7528\u914d\u7f6e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-32070","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=32070"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32070\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=32070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=32070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=32070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}