I'm doing static code analysis with sonarqube, but installion was failed. when i type on browser
http://localhost:9000/sonar.
This site can’t be reached
localhost refused to connect. Search Google for localhost 9000 sonar
I install by using this site..
terminal :
naveen@naveen-Inspiron-3542:~$ telnet localhost 9000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
naveen@naveen-Inspiron-3542:~$ netstat -ntlp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:18618 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:18619 0.0.0.0:* LISTEN -
tcp6 0 0 :::8080 :::* LISTEN -
tcp6 0 0 :::80 :::* LISTEN -
tcp6 0 0 :::39701 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -
naveen@naveen-Inspiron-3542:~$ cd /opt/sonar
naveen@naveen-Inspiron-3542:/opt/sonar$ cd bin
naveen@naveen-Inspiron-3542:/opt/sonar/bin$ ls
jsw-license linux-x86-64 windows-x86-32
linux-x86-32 macosx-universal-64 windows-x86-64
naveen@naveen-Inspiron-3542:/opt/sonar/bin$ cd linux-x86-64
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ ls
lib sonar.sh wrapper
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh stop
[sudo] password for naveen:
Stopping SonarQube...
SonarQube was not running.
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:18618 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:18619 0.0.0.0:* LISTEN
tcp6 0 0 :::8080 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::39701 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ netstat -ntlp | grep 9000
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN -
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ sudo netstat -ntlp | grep 9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1278/php-fpm.conf)
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ sudo netstat -ntlp | grep 9000
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ netstat -ntl | grep 9000
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ sudo ^C
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh start
Starting SonarQube...
Started SonarQube.
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ sudo ./sonar.sh status
SonarQube is running (4014).
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ netstat -ntl | grep 9000
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ sudo netstat -ntl | grep 9000
naveen@naveen-Inspiron-3542:/opt/sonar/bin/linux-x86-64$ telnet localhost 9000 Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused