{"id":1320,"date":"2024-01-10T10:02:56","date_gmt":"2024-01-10T02:02:56","guid":{"rendered":"https:\/\/log.tanxiaodian.com\/?p=1320"},"modified":"2024-01-10T10:02:56","modified_gmt":"2024-01-10T02:02:56","slug":"centos7%e4%b8%8b%e5%ae%89%e8%a3%85amqp","status":"publish","type":"post","link":"https:\/\/log.tanxiaodian.com\/?p=1320","title":{"rendered":"centos7\u4e0b\u5b89\u88c5amqp"},"content":{"rendered":"\n<p><strong>1.\u5148\u5b89\u88c5rabbitmq-c<\/strong><\/p>\n\n\n\n<p>wget https:\/\/github.com\/alanxz\/rabbitmq-c\/archive\/refs\/tags\/v0.11.0.tar.gz<br>tar -zxvf v0.11.0.tar.gz -C \/usr\/local\/<br>cd \/usr\/local\/rabbitmq-c-0.11.0\/<br>cmake -DCMAKE_INSTALL_PREFIX=\/usr\/local\/rabbitmq-c-0.11.0<br>cmake &#8211;build . &#8211;target install<br>ln -s \/usr\/local\/rabbitmq-c-0.11.0\/lib64 \/usr\/local\/rabbitmq-c-0.11.0\/lib<\/p>\n\n\n\n<p><br><strong>2.\u5b89\u88c5php-amqp<\/strong><\/p>\n\n\n\n<p>wget https:\/\/pecl.php.net\/get\/amqp-1.11.0.tgz<br>tar -zxvf amqp-1.11.0.tgz<br>cd amqp-1.11.0\/<br>\/www\/server\/php\/73\/bin\/phpize<\/p>\n\n\n\n<p>.\/configure &#8211;with-php-config=\/www\/server\/php\/73\/bin\/php-config &#8211;with-amqp &#8211;with-librabbitmq-dir=\/usr\/local\/rabbitmq-c-0.11.0<br>make &amp;&amp; make install<br>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br><\/p>\n\n\n\n<p>3<strong>.php.ini\u542f\u7528\u6269\u5c55\u5e76\u91cd\u542f<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>extension=\/www\/server\/php\/73\/lib\/php\/extensions\/no-debug-non-zts-20180731\/amqp.so<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5148\u5b89\u88c5rabbitmq-c wget http&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/log.tanxiaodian.com\/?p=1320\">Continue reading<span class=\"screen-reader-text\">centos7\u4e0b\u5b89\u88c5amqp<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[237],"_links":{"self":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/1320"}],"collection":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1320"}],"version-history":[{"count":1,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/1320\/revisions"}],"predecessor-version":[{"id":1321,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/1320\/revisions\/1321"}],"wp:attachment":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}