OS : CentOS 6.4
I am trying to connect to the RabitMQ server using the php client as follows:
$connection = new AMQPConnection('10.1.150.109', 5672, 'guest', 'guest');
$channel = $connection->channel();
But when I run the script from the browser, it gives me this, an
exception "PhpAmqpLib \ Exception \ AMQPRuntimeException" with the message "Server connection error (13): Permission denied" in / var / www / html / event / vendor / videlalvaro / php -amqplib / PhpAmqpLib / Wire / IO / StreamIO.php: 27
netstat show this,
tcp 0 0: 5672: * LISTEN 10776 / beam
In this message this guy gives an implicit answer, the Client cannot connect to the RabbitMQ server on localhost . But he did not describe the procedure that he was doing to fix this problem.
I thank you for the promotion for those who can help me in this regard.
source
share