{"id":778,"date":"2019-11-26T19:58:19","date_gmt":"2019-11-26T11:58:19","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=778"},"modified":"2020-09-27T17:05:25","modified_gmt":"2020-09-27T09:05:25","slug":"sonarqube7-8-centos7%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=778","title":{"rendered":"SonarQube7.8\/Centos7\u5b89\u88c5"},"content":{"rendered":"\n<p>\u4e00\u3001<a href=\"http:\/\/blog.coolcoding.cn\/?p=780\">CentOs7\uff0c\u5b89\u88c5\u597dMysql<\/a><br>\u7136\u540e\u5efa\u7acbdb\uff0c\u547d\u540d\u4e3asonar<\/p>\n\n\n\n<p>\u4e8c\u3001\u5b89\u88c5Java11(JDK\u53ef\u4ee5\u9009\u62e9OpenJDK\u6216\u8005Oracle\uff09\uff0c\u8fd9\u91cc\u9009OpenJDK<br>yum search java-11<br>yum install java-11-openjdk -y<\/p>\n\n\n\n<p>\u4e09\u3001\u65b0\u5efa\u7528\u6237sonar\uff0c\u5bc6\u7801sonar1234<br>adduser sonar<br>passwd sonar1234<\/p>\n\n\n\n<p>\u4e09\u3001\u4e0b\u8f7dSonarQube7.8\uff0c\u653e\u7f6e\u4e00\u4e2a\u76ee\u5f55\uff0c\u4f8b\u5982\/data\/sonarqube7.8\uff0c\u7136\u540e\u5207\u6362\u7528\u6237\uff1a<br>chown -R sonar:sonar \/data\/sonarqube7.8<\/p>\n\n\n\n<p>\u56db\u3001\u7f16\u8f91\/data\/sonarqube7.8\/conf\/sonar.properties<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sonar.jdbc.username=root\nsonar.jdbc.password=#Qwer1234\nsonar.jdbc.url=jdbc:mysql:\/\/localhost:3306\/sonar?useUnicode=true&amp;characterEncoding=utf8&amp;rewriteBatchedStatements=true&amp;useConfigs=maxPerformance&amp;useSSL=false<\/code><\/pre>\n\n\n\n<p>\u4e94\u3001\u542f\u52a8<br>\u4f7f\u7528sonar\u7528\u6237\u5207\u5230\/data\/sonarqube-7.8\/bin\/linux-x86-64\u76ee\u5f55\uff0c.\/sonar.sh start<br><br>\u7136\u540e\u4f7f\u7528\u7528\u6237\u7528admin\uff0c\u5bc6\u7801admin\u767b\u5f55 localhost:9000\u8fdb\u884c\u7ba1\u7406<\/p>\n\n\n\n<p>\u516d\u3001\u5982\u679c\u6709\u95ee\u9898\uff0c\u67e5\u770blogs\u76ee\u5f55<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001CentOs7\uff0c\u5b89\u88c5\u597dMysql\u7136\u540e\u5efa\u7acbdb\uff0c\u547d\u540d\u4e3asonar \u4e8c\u3001\u5b89\u88c5Java11(JDK\u53ef\u4ee5\u9009\u62e9Ope [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/778"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=778"}],"version-history":[{"count":5,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/778\/revisions"}],"predecessor-version":[{"id":785,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/778\/revisions\/785"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}