{"id":25675,"date":"2022-12-27T08:08:45","date_gmt":"2022-10-24T12:30:52","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/"},"modified":"2025-08-11T15:28:13","modified_gmt":"2025-08-11T07:28:13","slug":"%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/","title":{"rendered":"\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a"},"content":{"rendered":"<p>\u5b89\u88c5Crowi\u5230\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n<p>\u8fd9\u6b21\u5b89\u88c5\u7684\u662f\u5e26\u6709Elasticsearch\u7684Crowi\u3002<\/p>\n<h2>\u73af\u5883<\/h2>\n<pre class=\"post-pre\"><code>$ cat \/etc\/redhat-release\r\nCentOS Linux release 7.3.1611 (Core)\r\n<\/code><\/pre>\n<h2>\u5728CentOS7\u4e2d\u5b89\u88c5Node.js<\/h2>\n<pre class=\"post-pre\"><code>$ sudo yum install -y epel-release\r\n$ sudo yum group install \"Development Tools\"\r\n$ curl --fail -sSL -o setup-nodejs https:\/\/rpm.nodesource.com\/setup_6.x\r\n$ sudo bash setup-nodejs\r\n<\/code><\/pre>\n<p>https:\/\/www.phusionpassenger.com\/library\/walkthroughs\/deploy\/nodejs\/ownserver\/nginx\/oss\/install_language_runtime.html \u7684\u7b80\u5316\u7248\u672c\u5982\u4e0b\uff1a<br \/>\n* https:\/\/www.phusionpassenger.com\/library\/walkthroughs\/deploy\/nodejs\/ownserver\/nginx\/oss\/install_language_runtime.html \u7684\u7b80\u5316\u7248\u672c\u5982\u4e0b\uff1a<\/p>\n<h2>\u5728CentOS7\u4e0a\u5b89\u88c5MongoDB.<\/h2>\n<pre class=\"post-pre\"><code>$ sudo vim \/etc\/yumd.repos.d\/mongodb.repo\r\n[mongodb-org-3.4]\r\nname=MongoDB Repository\r\nbaseurl=https:\/\/repo.mongodb.org\/yum\/redhat\/$releasever\/mongodb-org\/3.4\/x 86_64\/\r\ngpgcheck=1\r\nenabled=1\r\ngpgkey=https:\/\/www.mongodb.org\/static\/pgp\/server-3.4.asc\r\n$ sudo yum install -y mongodb-org\r\n$ sudo systemctl start mongod\r\n$ sudo systemctl enable mongod\r\n<\/code><\/pre>\n<p>https:\/\/www.hugeserver.com\/kb\/install-mongodb-centos-6-7\/ \u4e28 \u5982\u4f55\u5728CentOS 6\u548c7\u4e0a\u5b89\u88c5MongoDB<\/p>\n<h2>\u5b89\u88c5MongoDB<\/h2>\n<pre class=\"post-pre\"><code>$ mongo\r\n&gt; use crowi \r\n<\/code><\/pre>\n<h2>\u5b89\u88c5Elastic Search<\/h2>\n<pre class=\"post-pre\"><code>$ sudo yum install -y java-1.8.0-openjdk\r\n$ sudo vim \/etc\/yum.repos.d\/elasticsearch.repo\r\n[elasticsearch-5.x]\r\nname=Elasticsearch repository for 5.x packages\r\nbaseurl=https:\/\/artifacts.elastic.co\/packages\/5.x\/yum\r\ngpgcheck=1\r\ngpgkey=https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\nenabled=1\r\nautorefresh=1\r\ntype=rpm-md\r\n\r\n$ sudo yum install -y elasticsearch\r\n$ sudo systemctl start elasticsearch\r\n$ sudo systemctl enable elasticsearch\r\n$ curl http:\/\/127.0.0.1:9200\r\n{\r\n  \"name\" : \"VSXONLm\",\r\n  \"cluster_name\" : \"elasticsearch\",\r\n  \"cluster_uuid\" : \"Z8UM2VxsQPiIO_tde9-xHg\",\r\n  \"version\" : {\r\n  \"number\" : \"5.6.0\",\r\n  \"build_hash\" : \"781a835\",\r\n  \"build_date\" : \"2017-09-07T03:09:58.087Z\",\r\n  \"build_snapshot\" : false,\r\n  \"lucene_version\" : \"6.6.0\"\r\n  },\r\n\"tagline\" : \"You Know, for Search\"\r\n}\r\n$ sudo \/usr\/share\/elasticsearch\/bin\/elasticsearch-plugin install analysis-kuromoji\r\n<\/code><\/pre>\n<p>* https:\/\/www.server-world.info\/en\/note?os=CentOS_7&amp;p=elasticstack&amp;f=1<br \/>\n* https:\/\/www.server-world.info\/zh\/note?os=CentOS_7&amp;p=elasticstack&amp;f=1<\/p>\n<h2>\u5f00\u59cb\u4f7f\u7528Crowi<\/h2>\n<pre class=\"post-pre\"><code>$ git clone https:\/\/github.com\/crowi\/crowi.git\r\n$ cd crowi\r\n$ git checkout v1.6.2\r\n$ PASSWORD_SEED=[seed] MONGO_URI=mongodb:\/\/localhost\/crowi npm start\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5Crowi\u5230\u670d\u52a1\u5668\u4e0a\u3002 \u8fd9\u6b21\u5b89\u88c5\u7684\u662f\u5e26\u6709Elasticsearch\u7684Crowi\u3002 \u73af\u5883 $ cat \/et [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-25675","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06crowi\u5b89\u88c5\u5230centos\u4e0a\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06crowi\u5b89\u88c5\u5230centos\u4e0a\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-24T12:30:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T07:28:13+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/\",\"name\":\"\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-10-24T12:30:52+00:00\",\"dateModified\":\"2025-08-11T07:28:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"description\":\"\u5173\u4e8e\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06crowi\u5b89\u88c5\u5230centos\u4e0a\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a","og_description":"\u5173\u4e8e\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c06crowi\u5b89\u88c5\u5230centos\u4e0a\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-10-24T12:30:52+00:00","article_modified_time":"2025-08-11T07:28:13+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/","name":"\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-10-24T12:30:52+00:00","dateModified":"2025-08-11T07:28:13+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"description":"\u5173\u4e8e\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5c06Crowi\u5b89\u88c5\u5230CentOS\u4e0a"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%86crowi%e5%ae%89%e8%a3%85%e5%88%b0centos%e4%b8%8a%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/25675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=25675"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/25675\/revisions"}],"predecessor-version":[{"id":55879,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/25675\/revisions\/55879"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=25675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=25675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=25675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}