You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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', '/');`
This discussion was converted from issue #1112 on August 24, 2023 20:25.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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