Ubuntu下sonar的構建[未完]

先要裝MYSQL服務器,當然,也可以使用其他的,爲了後續共用數據庫,mysql比較好。

安裝mysql參考
http://wiki.ubuntu.com.cn/MySQL

安裝sonar參考
http://dev.mamikon.net/installing-sonarqube-on-ubuntu/
文中步驟可用,提到的鏈接有些老了,現在最新的是
wget https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-5.3.zip

安裝成功後,默認用戶名密碼都是admin,記得改哦~

另,最低配置1核1G內存,同時跑Jenkins和Sonar感覺有點吃力,應該屬於跑不了的情況。嘗試打開雲盾,直接報下面的錯誤了:
看了一下,sonar推薦2G最小,加上Jenkins,整體用4G內存比較合適。

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e482f000, 40259584, 0) failed; error=’Cannot allocate memory’ (errno=12)

# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 40259584 bytes for committing reserved memory.

發佈了36 篇原創文章 · 獲贊 8 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章