Home >PHP Framework >Laravel >After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.

After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.

咔咔
咔咔Original
2020-06-23 14:57:423622browse

I searched countless information on how to install laravel-queue-rabbitmq using laravel. The articles that came out were all the same, but they just couldn’t be installed. After several hours, I finally It’s done, this tutorial is for you who are installing it.

##Implementation environment of this article

  • laravel5.8
  • centos7.3

Use laravel to install laravel-queue-rabbitmq.

How invincible the mistake happened.

The executed command is

composer require vladimir-yuldashev/laravel-queue-rabbitmq

Then I started searching for information non-stop. I searched and searched, but one song was missing. , two songs are gone, three songs are gone, and the answers found are basically the same, which is to use the command above. After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.

I just wonder why so many people can achieve it but get stuck here. Living.

Is there someone else to report an error? So I saw this answer in a reply

After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.So I opened the github address and took a look. These numbers came into view directly! But at the time I just pretended I didn’t see it, what the hell was this. After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.I didn’t understand the meaning of this picture until I solved the problem

The first column of this picture is the package version, if nothing unexpected happens, use it directlycomposer require vladimir-yuldashev/laravel-queue- The installed version of rabbitmq is 10, which means your laravel version needs to be 6 or 7.

Because the PHP version required by laravel6 and 7 is too high, it is not used.

If you find the problem, try installing the corresponding version! composer require vladimir-yuldashev/laravel-queue-rabbitmq:7.2

But it’s still not satisfactory, what the hell is this?After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.Don’t panic when you encounter this problem, that is, it prompts "Prompt memory Insufficient", we can solve this problem by creating a swap partition.

Execute the following three instructions

dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
mkswap /var/swap.1
swapon /var/swap.1

Then execute composer require vladimir-yuldashev/laravel-queue-rabbitmq:7.2

It’s perfect, very Yes, this is how a problem is solved. After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.

3. Summary

#In fact, this problem is probably not a problem for the big guys, but it is indeed a bit difficult for novices. .

This problem is ultimately due to the lack of familiarity with the installation package and the lack of understanding of the differences in versions when laravel is installed.

No matter it is laravle, if you encounter this kind of problem in the future, you need to check the documentation in detail to see if the version is incompatible.

The above is the detailed content of After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn