Unable to connect to remote asterisk

I have recently installed Asterisk 1.8 on Centos 6.6 on a teste machine but when i type asterisk -r , i get error mesasge “Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)”

cd /var/log/asterisk/messages below

[Apr 26 20:03:14] NOTICE[27559] cdr.c: CDR simple logging enabled.
[Apr 26 20:03:14] NOTICE[27559] loader.c: 187 modules will be loaded.
[Apr 26 20:03:14] NOTICE[27559] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 26 20:03:14] NOTICE[27559] chan_skinny.c: Configuring skinny from skinny.conf
[Apr 26 20:03:14] WARNING[27559] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[Apr 26 20:03:14] WARNING[27559] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[Apr 26 20:03:14] WARNING[27559] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[Apr 26 20:03:14] WARNING[27559] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[Apr 26 20:03:14] WARNING[27559] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[Apr 26 20:03:14] NOTICE[27559] pbx_ael.c: Starting AEL load process.
[Apr 26 20:03:14] NOTICE[27559] pbx_ael.c: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:03:14] NOTICE[27559] pbx_ael.c: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:03:14] NOTICE[27559] pbx_ael.c: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:03:14] NOTICE[27559] pbx_ael.c: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:03:14] NOTICE[27559] pbx_ael.c: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:04:01] NOTICE[27627] cdr.c: CDR simple logging enabled.
[Apr 26 20:04:01] WARNING[27627] db.c: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Apr 26 20:04:01] NOTICE[27627] loader.c: 187 modules will be loaded.
[Apr 26 20:04:01] NOTICE[27627] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 26 20:04:01] WARNING[27627] res_musiconhold.c: No music on hold classes configured, disabling music on hold.
[Apr 26 20:04:01] NOTICE[27627] chan_skinny.c: Configuring skinny from skinny.conf
[Apr 26 20:04:01] WARNING[27627] chan_skinny.c: Failed to bind to 0.0.0.0:2000: Permission denied
[Apr 26 20:04:01] WARNING[27627] db.c: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Apr 26 20:04:01] WARNING[27627] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[Apr 26 20:04:01] WARNING[27627] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[Apr 26 20:04:01] WARNING[27627] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[Apr 26 20:04:01] WARNING[27627] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[Apr 26 20:04:01] WARNING[27627] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[Apr 26 20:04:01] WARNING[27627] db.c: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Apr 26 20:04:01] WARNING[27627] db.c: Database unavailable
[Apr 26 20:04:01] WARNING[27627] chan_unistim.c: Failed to bind to 0.0.0.0:5000: Permission denied
[Apr 26 20:04:01] NOTICE[27627] pbx_ael.c: Starting AEL load process.
[Apr 26 20:04:01] NOTICE[27627] pbx_ael.c: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:04:01] NOTICE[27627] pbx_ael.c: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:04:01] NOTICE[27627] pbx_ael.c: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:04:01] NOTICE[27627] pbx_ael.c: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:04:01] NOTICE[27627] pbx_ael.c: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Apr 26 20:04:01] WARNING[27627] db.c: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Apr 26 20:04:01] WARNING[27627] db.c: Database unavailable
[Apr 26 20:04:01] WARNING[27627] db.c: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied

Unable to connect to remote asterisk normally means that the asterisk service failed to start, so there is nothing to connect to. That seems likely here. It can also indicate a permissions problem.