Help us understand the problem. What is going on with this article?

CrowiをCentOSにインストール

More than 3 years have passed since last update.

Crowiをサーバにインストールする。

今回はCrowiにElasticsearch付きでインストール。

Environment

$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

Intall Node.js to CentOS7

$ sudo yum install -y epel-release
$ sudo yum group install "Development Tools"
$ curl --fail -sSL -o setup-nodejs https://rpm.nodesource.com/setup_6.x
$ sudo bash setup-nodejs

*https://www.phusionpassenger.com/library/walkthroughs/deploy/nodejs/ownserver/nginx/oss/install_language_runtime.html

Install MongoDB to CentOS7

$ sudo vim /etc/yumd.repos.d/mongodb.repo
[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x 86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
$ sudo yum install -y mongodb-org
$ sudo systemctl start mongod
$ sudo systemctl enable mongod

*https://www.hugeserver.com/kb/install-mongodb-centos-6-7/

Setup MongoDB

$ mongo
> use crowi 

Install Elastic Search

$ sudo yum install -y java-1.8.0-openjdk
$ sudo vim /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

$ sudo yum install -y elasticsearch
$ sudo systemctl start elasticsearch
$ sudo systemctl enable elasticsearch
$ curl http://127.0.0.1:9200
{
  "name" : "VSXONLm",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "Z8UM2VxsQPiIO_tde9-xHg",
  "version" : {
  "number" : "5.6.0",
  "build_hash" : "781a835",
  "build_date" : "2017-09-07T03:09:58.087Z",
  "build_snapshot" : false,
  "lucene_version" : "6.6.0"
  },
"tagline" : "You Know, for Search"
}
$ sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-kuromoji

* https://www.server-world.info/en/note?os=CentOS_7&p=elasticstack&f=1

Start crowi

$ git clone https://github.com/crowi/crowi.git
$ cd crowi
$ git checkout v1.6.2
$ PASSWORD_SEED=[seed] MONGO_URI=mongodb://localhost/crowi npm start
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした