{"id":274,"date":"2019-01-28T17:57:50","date_gmt":"2019-01-28T09:57:50","guid":{"rendered":"https:\/\/qtvz.com\/?p=274"},"modified":"2019-01-28T18:03:38","modified_gmt":"2019-01-28T10:03:38","slug":"%e5%ae%8c%e5%85%a8%e5%8d%b8%e8%bd%bd-gitlab","status":"publish","type":"post","link":"https:\/\/qtvz.com\/274.html","title":{"rendered":"\u5b8c\u5168\u5378\u8f7d GitLab"},"content":{"rendered":"<!--wp-compress-html--><!--wp-compress-html no compression-->\n<p><br>That directory is populated with&nbsp;<code>gitlab-ce reconfigure<\/code>&nbsp;command after installation and holds variable data, configurations related to&nbsp;<code>gitlab-ce<\/code>&nbsp;package.<\/p>\n\n\n\n<p>The recommended process to uninstall it was<\/p>\n\n\n\n<p>1\u3001 Remove services <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo gitlab-ctl uninstall<\/code><\/pre>\n\n\n\n<p>2\u3001 Clean any data generated by usage of the package<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo gitlab-ctl cleanse<\/code><\/pre>\n\n\n\n<p>3\u3001 You may also want to remove any accounts you configured. To do so  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo gitlab-ctl remove-accounts<\/code><\/pre>\n\n\n\n<p>4\u3001 Then remove the package using\u00a0<strong>\uff08\u535a\u4e3b\u6ce8\uff1a\u8fd9\u91cc\u5378\u8f7d\u7684\u662f ce\uff09<\/strong> <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dpkg -P gitlab-ce<\/code><\/pre>\n\n\n\n<p>Furthermore, gitlab-ce uses these directories (as described\u00a0here)<\/p>\n\n\n\n<ul><li><code>\/opt\/gitlab<\/code>&nbsp;holds application code for <a href=\"https:\/\/qtvz.com\/tag\/gitlab\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e GitLab \u7684\u6587\u7ae0\" target=\"_blank\">GitLab<\/a> and its dependencies.<\/li><li><code>\/var\/opt\/gitlab<\/code>&nbsp;holds application data and configuration files that gitlab-ctl reconfigure writes to.<\/li><li><code>\/etc\/gitlab<\/code>&nbsp;holds configuration files for omnibus-gitlab. These are the only files that you should ever have to edit manually.<\/li><li><code>\/var\/log\/gitlab<\/code>&nbsp;contains all log data generated by components of omnibus-gitlab.<\/li><\/ul>\n<!--wp-compress-html no compression--><!--wp-compress-html-->","protected":false},"excerpt":{"rendered":"That directory is populated with&nbsp;gitlab-ce reconfigure&nbsp;command after installation and hold \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[72],"tags":[73],"views":12435,"_links":{"self":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts\/274"}],"collection":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/comments?post=274"}],"version-history":[{"count":2,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts\/274\/revisions"}],"predecessor-version":[{"id":276,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts\/274\/revisions\/276"}],"wp:attachment":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/media?parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/categories?post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/tags?post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}