代码拉取完成,页面将自动刷新
Here you can find Perl code examples from RabbitMQ tutorials.
To successfully use the examples you will need a running RabbitMQ server.
To run this code you need to install Net::RabbitFoot.
cpan -i Net::RabbitFoot
For tutorial six UUID::Tiny needs to be installed.
cpan -i UUID::Tiny
There are known problems with the the Net::RabbitFoot module:
On Ubuntu:
sudo apt-get install make libclass-data-inheritable-perl libtest-deep-perl libmoosex-app-cmd-perl libcoro-perl libjson-xs-perl libxml-libxml-perl libconfig-any-perl libmoosex-attributehelpers-perl libmoosex-configfromfile-perl libtest-exception-perl libfile-sharedir-perl libreadonly-xs-perl libuuid-tiny-perl
sudo cpan -i Net::RabbitFoot
perl send.pl
perl receive.pl
perl new_task.pl "A very hard task which takes two seconds.."
perl worker.pl
Tutorial three: Publish/Subscribe:
perl receive_logs.pl
perl emit_log.pl "info: This is the log message"
perl receive_logs_direct.pl info
perl emit_log_direct.pl info "The message"
perl receive_logs_topic.pl "*.rabbit"
perl emit_log_topic.pl red.rabbit Hello
perl rpc_server.pl
perl rpc_client.pl
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。