Error Connecting to server(99) #1113
mhammouda86
started this conversation in
Help wanted
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
i install the image RabbitMQ on docker and i install the php-amqplib
i try my first test:
`require_once DIR.'/vendor/autoload.php';
require_once DIR.'/vendor/php-amqplib/php-amqplib/demo/config.php';
use PhpAmqpLib\Connection\AMQPConnection;
use PhpAmqpLib\Connection\AMQPSSLConnection;
use PhpAmqpLib\Message\AMQPMessage;
try {
$conn = new AMQPConnection(HOST, PORT, USER, PASS, VHOST);
}
catch (Exception $e) {
echo $e->getMessage();
return FALSE;
}
But is returned error: Error Connecting to server(99): Cannot assign requested address In config file i have the default value:
define('HOST', 'localhost');define('PORT', 5672);
define('USER', 'guest');
define('PASS', 'guest');
define('VHOST', '/');`
How i can fix this? thanks
Beta Was this translation helpful? Give feedback.
All reactions