이 문서는 SonarQube v6.4 기반의 문서로 아카이브 되었습니다.
최신 문서를 참조하십시오.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Office SonarQube Document Link: Running SonarQube as a Service on Linux

이 섹션의 명령어들은 Ubuntu 8.10 및 CentOS 6.2에서 테스트되었습니다.

아래와 같이 /etc/init.d/sonar 파일을 생성합니다:

 #!/bin/sh
 #
 # rc file for SonarQube
 #
 # chkconfig: 345 96 10
 # description: SonarQube system (www.sonarsource.org)
 #
 ### BEGIN INIT INFO
 # Provides: sonar
 # Required-Start: $network
 # Required-Stop: $network
 # Default-Start: 3 4 5
 # Default-Stop: 0 1 2 6
 # Short-Description: SonarQube system (www.sonarsource.org)
 # Description: SonarQube system (www.sonarsource.org)
 ### END INIT INFO
 
 /usr/bin/sonar $*

부트 시점에 SonarQube 등록합니다(Ubuntu, 32 bit):

 sudo ln -s $SONAR_HOME/bin/linux-x86-32/sonar.sh /usr/ bin/sonar
 sudo chmod 755 /etc/init.d/sonar
 sudo update-rc.d sonar defaults

부트 시점에 SonarQube 등록합니다(CentOS, 64 bit):

 sudo ln -s $SONAR_HOME/bin/linux-x86-64/sonar.sh /usr/bin/sonar
 sudo chmod 755 /etc/init.d/sonar
 sudo chkconfig --add sonar
  • No labels