macOS版本, macOS Sierra 10.12.3 (16D32)
PHP內建環境, XAMPP 7.0.15-0
Apache 2.4.25,
MariaDB 10.1.21
PHP 7.0.15
在檔案的最上面添加<code>/Applications/XAMPP/xamppfiles/bin</code>
重新開機中端
報錯 ERROR: epmd error for host bogon: timeout (timed out)
修改hosts , 增加 <code>127.0.0.1 bogon</code>
繼續
添加所在sbin路徑<code>/Applications/XAMPP/rabbitmq_server-3.6.6/sbin</code>
重新開機終端
再次啟動服務
<code>rabbitmq-server</code>
這個圖形化界面是一個插件
重新開機服務後,就會變成<code>completed with 6 plugins.</code>
通路圖形化登入界面的位址為<code>http://localhost:15672/</code>
之後就可以登入圖形化管理界面了
在建立使用者的之後,需要通過标簽的形式給使用者賦予對應的權限
administrator | monitoring | policymaker | management |
Comma-separated list of tags to apply to the user. Currently supported by the management plugin: - management User can access the management plugin - policymaker User can access the management plugin and manage policies and parameters for the vhosts they have access to. - monitoring User can access the management plugin and see all connections and channels as well as node-related information. - administrator User can do everything monitoring can do, manage users, vhosts and permissions, close other user’s connections, and manage policies and parameters for all vhosts. Note that you can set any tag here; the links for the above four tags are just for convenience.
`aclocal’ is part of automake package, try to install it first.
是以需要重新安裝<code>automake</code>
修改配置檔案
重新開機伺服器
建立 <code>composer.json</code>檔案
在項目所在目錄執行<code>composer install</code>
配置檔案<code>config.php</code>
demo檔案<code>test.php</code>
指令行運作代碼<code>php test.php</code>,得到debug資訊,和正确的傳回
到此,環境配置完成
本次配置環境涉及到了
不同bash下的環境變量的修改
軟體環境的互相依賴關系
編譯的報錯以及排查
出現問題之後的問題搜尋技巧
隻要可能出問題就一定出問題的墨菲定律
<a href="http://pecl.php.net/package/amqp">http://pecl.php.net/package/amqp</a>
<a href="http://www.php.net/manual/pl/book.amqp.php">http://www.php.net/manual/pl/book.amqp.php</a>
<a href="http://www.infoq.com/cn/articles/AMQP-RabbitMQ/">http://www.infoq.com/cn/articles/AMQP-RabbitMQ/</a>
<a href="http://www.th7.cn/system/mac/201409/70274.shtml">http://www.th7.cn/system/mac/201409/70274.shtml</a>
<a href="http://www.rabbitmq.com/download.html">http://www.rabbitmq.com/download.html</a>
<a href="http://stackoverflow.com/questions/9520914/installing-amqp-through-pecl">http://stackoverflow.com/questions/9520914/installing-amqp-through-pecl</a>
<a href="https://github.com/alanxz/rabbitmq-c">https://github.com/alanxz/rabbitmq-c</a>
<a href="http://www.cnblogs.com/hurricane2011/articles/2503582.html">http://www.cnblogs.com/hurricane2011/articles/2503582.html</a>
<a href="http://blog.csdn.net/sky_qing/article/details/9707647">http://blog.csdn.net/sky_qing/article/details/9707647</a>
<a href="https://github.com/facebook/redex/issues/22">https://github.com/facebook/redex/issues/22</a>
<a href="https://www.openssl.org/">https://www.openssl.org/</a>
<a href="https://github.com/pdezwart/php-amqp">https://github.com/pdezwart/php-amqp</a>
<a href="https://github.com/php-amqplib/php-amqplib">https://github.com/php-amqplib/php-amqplib</a>