System error

error:  couldn't connect to server localhost:27017 at /usr/local/lib64/perl5/MongoDB/MongoClient.pm line 356.
context: 
... 
351:  if (@pairs == 1 && !$self->find_master) {
352:  my @hp = split ":", $pairs[0];
353: 
354:  $self->_init_conn($hp[0], $hp[1], $self->ssl);
355:  if ($self->auto_connect) {
356:  $self->connect;
357:  }
358:  return;
359:  }
... 
code stack:  /usr/local/lib64/perl5/MongoDB/MongoClient.pm:355
constructor MongoDB::MongoClient::new (defined at /usr/local/lib64/perl5/MongoDB/MongoClient.pm line 1069):467
/usr/local/apache/htdocs/alternativer/search.html:12
/usr/local/apache/htdocs/alternativer/index.html:30
raw error






























couldn't connect to server localhost:27017 at /usr/local/lib64/perl5/MongoDB/MongoClient.pm line 356.


Trace begun at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('couldn\'t connect to server localhost:27017 at /usr/local/lib64/perl5/MongoDB/MongoClient.pm line 356.^J') called at /usr/local/lib64/perl5/MongoDB/MongoClient.pm line 355
MongoDB::MongoClient::BUILD('MongoDB::MongoClient=HASH(0x157a260)', 'HASH(0x157a218)') called at constructor MongoDB::MongoClient::new (defined at /usr/local/lib64/perl5/MongoDB/MongoClient.pm line 1069) line 467
MongoDB::MongoClient::new('MongoDB::MongoClient', 'host', 'localhost', 'port', 27017) called at /usr/local/apache/htdocs/alternativer/search.html line 12
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x3847178)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at /usr/local/apache/htdocs/alternativer/index.html line 30
HTML::Mason::Commands::__ANON__('keywords', 'black') called at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x15779c8)', 'keywords', 'black') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'keywords', 'black') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x154e3d0)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x154e3d0)') called at /usr/local/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xdf92d0)', 'Apache2::RequestRec=SCALAR(0xd54830)') called at /usr/local/apache/handler.pl line 14
MyMason::MyApp::handler('Apache2::RequestRec=SCALAR(0xd54830)') called at -e line 0
eval {...} at -e line 0