linux readhat계열 mongodb 설치하기
오랜만에 글을 쓰는데...
사용환경은 centos6.10입니다. php에서 사용하고자합니다.
1. 먼저 yum을 하기 위한 repo등록을 합니다.
/etc/yum.repos.d/mongodb-org-4.2.repo 화일을 만들고
아래 정보를 넣습니다.
[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc

2. yum install -y mongodb-org
아니 머 이렇게 쉽다니.........
버전을 따로 원하신다면 아래와 같이도 가능합니다.
sudo yum install -y mongodb-org-4.2.0 mongodb-org-server-4.2.0 mongodb-org-shell-4.2.0 mongodb-org-mongos-4.2.0 mongodb-org-tools-4.2.0

3. sudo chkconfig mongod on
여러분 다~~들 아시죠.... reboot 시 자동으로 시작해라.....
4. sudo service mongod restart | start | stop
여러분 다~~들 아시죠....
5. mongo
시작합니다.

경고가 많네요. 세팅을 좀 해야 하나 봅니다.
너무 간단해서 글을 올리지 말아야 하나 고민이 드네요.
댓글 1개
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4736 | jQuery | 8년 전 | 1562 | ||
| 4735 | jQuery | 8년 전 | 1753 | ||
| 4734 | jQuery | 8년 전 | 1742 | ||
| 4733 | jQuery | 8년 전 | 2037 | ||
| 4732 | jQuery | 8년 전 | 1959 | ||
| 4731 | jQuery | 8년 전 | 1461 | ||
| 4730 | jQuery | 8년 전 | 1920 | ||
| 4729 | PHP |
|
8년 전 | 6906 | |
| 4728 | jQuery | 8년 전 | 2563 | ||
| 4727 | jQuery | 8년 전 | 1612 | ||
| 4726 | jQuery | 8년 전 | 1692 | ||
| 4725 | jQuery | 8년 전 | 1835 | ||
| 4724 | jQuery | 8년 전 | 1313 | ||
| 4723 | jQuery | 8년 전 | 1865 | ||
| 4722 | jQuery | 8년 전 | 1630 | ||
| 4721 | jQuery | 8년 전 | 1919 | ||
| 4720 | jQuery | 8년 전 | 1981 | ||
| 4719 | jQuery | 8년 전 | 1604 | ||
| 4718 | jQuery | 8년 전 | 1610 | ||
| 4717 | jQuery | 8년 전 | 1561 | ||
| 4716 | jQuery | 8년 전 | 1240 | ||
| 4715 | jQuery | 8년 전 | 1398 | ||
| 4714 | jQuery | 8년 전 | 1420 | ||
| 4713 | jQuery | 8년 전 | 1339 | ||
| 4712 | jQuery | 8년 전 | 2230 | ||
| 4711 | jQuery | 8년 전 | 1717 | ||
| 4710 | PHP |
|
8년 전 | 3748 | |
| 4709 | jQuery | 8년 전 | 1631 | ||
| 4708 | jQuery | 8년 전 | 1912 | ||
| 4707 | jQuery | 8년 전 | 1768 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기